LibWeb: Parse @counter-style range descriptor

This commit is contained in:
Callum Law
2026-01-31 21:50:45 +13:00
committed by Sam Atkins
parent f1e8d54717
commit afca221d47
Notes: github-actions[bot] 2026-02-06 10:37:51 +00:00
9 changed files with 91 additions and 19 deletions

View File

@@ -119,6 +119,7 @@ struct DescriptorMetadata {
// FIXME: Parse the grammar instead of hard-coding all the options!
CounterStyleSystem,
CounterStyleNegative,
CounterStyleRange,
CropOrCross,
FamilyName,
FontSrcList,
@@ -408,6 +409,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 == "<counter-style-range>"sv)
return "CounterStyleRange"_string;
dbgln("Unrecognized value type: `{}`", syntax_string);
VERIFY_NOT_REACHED();
}();