mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibWeb: Parse @counter-style range descriptor
This commit is contained in:
Notes:
github-actions[bot]
2026-02-06 10:37:51 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/afca221d472 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7708 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -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();
|
||||
}();
|
||||
|
||||
Reference in New Issue
Block a user