LibWeb: Parse @counter-style symbols descriptor

This commit is contained in:
Callum Law
2026-01-31 23:11:29 +13:00
committed by Sam Atkins
parent 1f8c9cf662
commit ecfdf252b8
Notes: github-actions[bot] 2026-02-06 10:37:31 +00:00
12 changed files with 135 additions and 20 deletions

View File

@@ -131,6 +131,7 @@ struct DescriptorMetadata {
PositivePercentage,
String,
Symbol,
Symbols,
UnicodeRangeTokens,
};
Vector<Variant<Keyword, PropertyID, ValueType>> syntax;
@@ -411,6 +412,8 @@ DescriptorMetadata get_descriptor_metadata(AtRuleID at_rule_id, DescriptorID des
return "CounterStyleNegative"_string;
if (syntax_string == "<symbol>"sv)
return "Symbol"_string;
if (syntax_string == "<symbol>+"sv)
return "Symbols"_string;
if (syntax_string == "<counter-style-range>"sv)
return "CounterStyleRange"_string;
if (syntax_string == "<counter-style-pad>"sv)