1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:48:12 +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

@ -467,6 +467,9 @@ void dump_selector(StringBuilder& builder, CSS::Selector const& selector)
case CSS::Selector::SimpleSelector::PseudoClass::Type::Root:
pseudo_class_description = "Root";
break;
case CSS::Selector::SimpleSelector::PseudoClass::Type::Host:
pseudo_class_description = "Host";
break;
case CSS::Selector::SimpleSelector::PseudoClass::Type::FirstOfType:
pseudo_class_description = "FirstOfType";
break;