mirror of
https://github.com/RGBCube/serenity
synced 2025-05-17 18:35:07 +00:00

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.
9 lines
123 B
HTML
9 lines
123 B
HTML
<style>
|
|
:host, div {
|
|
width: 100px;
|
|
}
|
|
:host(span), div {
|
|
height: 100px;
|
|
background: green;
|
|
}
|
|
</style><div>whf
|