1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:08:10 +00:00

LibWeb: Parse CSS :host selector

Let's at least parse it, even if we don't implement matching for it yet.
This commit is contained in:
Andreas Kling 2023-07-05 11:43:57 +02:00
parent 6acce60393
commit 088cc4ea73
5 changed files with 12 additions and 0 deletions

View file

@ -98,6 +98,7 @@ public:
NthLastChild,
Empty,
Root,
Host,
FirstOfType,
LastOfType,
OnlyOfType,
@ -265,6 +266,8 @@ constexpr StringView pseudo_class_name(Selector::SimpleSelector::PseudoClass::Ty
return "empty"sv;
case Selector::SimpleSelector::PseudoClass::Type::Root:
return "root"sv;
case Selector::SimpleSelector::PseudoClass::Type::Host:
return "host"sv;
case Selector::SimpleSelector::PseudoClass::Type::FirstOfType:
return "first-of-type"sv;
case Selector::SimpleSelector::PseudoClass::Type::LastOfType: