LibWeb: Parse @counter-style pad descriptor

This commit is contained in:
Callum Law
2026-01-31 22:04:08 +13:00
committed by Sam Atkins
parent afca221d47
commit 9b376240f9
Notes: github-actions[bot] 2026-02-06 10:37:44 +00:00
11 changed files with 103 additions and 16 deletions

View File

@@ -119,6 +119,7 @@ struct DescriptorMetadata {
// FIXME: Parse the grammar instead of hard-coding all the options!
CounterStyleSystem,
CounterStyleNegative,
CounterStylePad,
CounterStyleRange,
CropOrCross,
FamilyName,
@@ -411,6 +412,8 @@ DescriptorMetadata get_descriptor_metadata(AtRuleID at_rule_id, DescriptorID des
return "Symbol"_string;
if (syntax_string == "<counter-style-range>"sv)
return "CounterStyleRange"_string;
if (syntax_string == "<counter-style-pad>"sv)
return "CounterStylePad"_string;
dbgln("Unrecognized value type: `{}`", syntax_string);
VERIFY_NOT_REACHED();
}();