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