mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +00:00
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.
This commit is contained in:
parent
ac2d9d9273
commit
64c06c345e
4 changed files with 35 additions and 0 deletions
|
@ -0,0 +1,9 @@
|
|||
<style>
|
||||
:host, div {
|
||||
width: 100px;
|
||||
}
|
||||
:host(span), div {
|
||||
height: 100px;
|
||||
background: green;
|
||||
}
|
||||
</style><div>whf
|
Loading…
Add table
Add a link
Reference in a new issue