mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Parse @counter-style prefix and suffix descriptors
This commit is contained in:
Notes:
github-actions[bot]
2026-02-06 10:37:57 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/f1e8d547174 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7708 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -127,6 +127,7 @@ struct DescriptorMetadata {
|
||||
PageSize,
|
||||
PositivePercentage,
|
||||
String,
|
||||
Symbol,
|
||||
UnicodeRangeTokens,
|
||||
};
|
||||
Vector<Variant<Keyword, PropertyID, ValueType>> syntax;
|
||||
@@ -405,6 +406,8 @@ DescriptorMetadata get_descriptor_metadata(AtRuleID at_rule_id, DescriptorID des
|
||||
return "CounterStyleSystem"_string;
|
||||
if (syntax_string == "<counter-style-negative>"sv)
|
||||
return "CounterStyleNegative"_string;
|
||||
if (syntax_string == "<symbol>"sv)
|
||||
return "Symbol"_string;
|
||||
dbgln("Unrecognized value type: `{}`", syntax_string);
|
||||
VERIFY_NOT_REACHED();
|
||||
}();
|
||||
|
||||
Reference in New Issue
Block a user