mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Parse @counter-style negative descriptor
This commit is contained in:
Notes:
github-actions[bot]
2026-02-06 10:38:04 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/70c8d8746f5 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7708 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -118,6 +118,7 @@ struct DescriptorMetadata {
|
||||
enum class ValueType {
|
||||
// FIXME: Parse the grammar instead of hard-coding all the options!
|
||||
CounterStyleSystem,
|
||||
CounterStyleNegative,
|
||||
CropOrCross,
|
||||
FamilyName,
|
||||
FontSrcList,
|
||||
@@ -402,6 +403,8 @@ DescriptorMetadata get_descriptor_metadata(AtRuleID at_rule_id, DescriptorID des
|
||||
return "UnicodeRangeTokens"_string;
|
||||
if (syntax_string == "<counter-style-system>"sv)
|
||||
return "CounterStyleSystem"_string;
|
||||
if (syntax_string == "<counter-style-negative>"sv)
|
||||
return "CounterStyleNegative"_string;
|
||||
dbgln("Unrecognized value type: `{}`", syntax_string);
|
||||
VERIFY_NOT_REACHED();
|
||||
}();
|
||||
|
||||
Reference in New Issue
Block a user