mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
When a subtree is projected through a slot, its root now inherits style from the slot's parent, rather than the parent of the unprojected root. This fixes a ton of subtle issues, and is very noticeable on Reddit.
10 lines
287 B
HTML
10 lines
287 B
HTML
<!doctype html><style>
|
|
* { outline: 1px solid black; }
|
|
div { border: 5px solid lime; }
|
|
</style><body><template shadowrootmode="open"><style>
|
|
main {
|
|
display: flex;
|
|
border: 5px solid orange;
|
|
}
|
|
</style><main><slot></slot></main></template><foobar><div>story
|