1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 18:35:07 +00:00
serenity/Tests/LibWeb/Layout/input/css-host-selector-gets-parsed.html
Andreas Kling 64c06c345e LibWeb: Parse :host() selector
We were already parsing non-function-syntax :host, so let's also do
the :host(...) variant. Note that we don't have matching for these yet.

This fixes many issues on sites generated by Wix, as they often have
selector lists that include some :host() selector, and we'd reject the
entire rule after failing to parse it.
2023-08-05 13:23:12 +02:00

9 lines
123 B
HTML

<style>
:host, div {
width: 100px;
}
:host(span), div {
height: 100px;
background: green;
}
</style><div>whf