Files
ladybird/Tests/LibWeb/Layout/input/slot-style-inheritance.html
Andreas Kling 9208a54b0b LibWeb: Allow style inheritance through slots
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.
2025-08-16 21:03:31 +02:00

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