1
Fork 0
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:
Andreas Kling 2023-08-05 11:51:31 +02:00
parent ac2d9d9273
commit 64c06c345e
4 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,9 @@
<style>
:host, div {
width: 100px;
}
:host(span), div {
height: 100px;
background: green;
}
</style><div>whf