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

LibWeb: Add selector support to the new CSSParser

This is stolen from the old parser, but it seems to parse fine :^)
This commit is contained in:
stelar7 2021-04-29 21:16:28 +02:00 committed by Andreas Kling
parent 5acac54085
commit 55446172cb
6 changed files with 236 additions and 2 deletions

View file

@ -285,6 +285,9 @@ void dump_selector(StringBuilder& builder, const CSS::Selector& selector)
case CSS::Selector::ComplexSelector::Relation::GeneralSibling:
relation_description = "GeneralSibling";
break;
case CSS::Selector::ComplexSelector::Relation::Column:
relation_description = "Column";
break;
}
if (*relation_description)
@ -323,6 +326,9 @@ void dump_selector(StringBuilder& builder, const CSS::Selector& selector)
case CSS::Selector::SimpleSelector::AttributeMatchType::Contains:
attribute_match_type_description = "Contains";
break;
case CSS::Selector::SimpleSelector::AttributeMatchType::StartsWith:
attribute_match_type_description = "StartsWith";
break;
}
const char* pseudo_class_description = "";