1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

LibWeb: Implement the :defined pseudo class

This selects an element if it is either a built-in element, or an
upgraded custom element.
This commit is contained in:
Luke Wilde 2023-03-29 23:48:40 +01:00 committed by Andreas Kling
parent 6ebdb9f824
commit a744ae79ff
5 changed files with 11 additions and 0 deletions

View file

@ -459,6 +459,9 @@ void dump_selector(StringBuilder& builder, CSS::Selector const& selector)
case CSS::Selector::SimpleSelector::PseudoClass::Type::Scope:
pseudo_class_description = "Scope";
break;
case CSS::Selector::SimpleSelector::PseudoClass::Type::Defined:
pseudo_class_description = "Defined";
break;
}
builder.appendff(" pseudo_class={}", pseudo_class_description);