1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 17:35:07 +00:00

LibWeb: Support the :root pseudo class

This commit is contained in:
Linus Groh 2020-05-13 22:38:12 +01:00 committed by Andreas Kling
parent 2f29e61203
commit 7bfd24ca76
5 changed files with 22 additions and 0 deletions

View file

@ -414,6 +414,8 @@ public:
simple_selector.pseudo_class = Selector::SimpleSelector::PseudoClass::OnlyChild;
else if (pseudo_name.equals_ignoring_case("empty"))
simple_selector.pseudo_class = Selector::SimpleSelector::PseudoClass::Empty;
else if (pseudo_name.equals_ignoring_case("root"))
simple_selector.pseudo_class = Selector::SimpleSelector::PseudoClass::Root;
}
if (index == index_at_start) {