mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb/CSS: Parse @page size descriptor
This commit is contained in:
Notes:
github-actions[bot]
2025-05-15 08:54:31 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/9415bffd9bc Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4735
@@ -121,6 +121,7 @@ struct DescriptorMetadata {
|
||||
FamilyName,
|
||||
FontSrcList,
|
||||
OptionalDeclarationValue,
|
||||
PageSize,
|
||||
PositivePercentage,
|
||||
String,
|
||||
UnicodeRangeTokens,
|
||||
@@ -386,6 +387,8 @@ DescriptorMetadata get_descriptor_metadata(AtRuleID at_rule_id, DescriptorID des
|
||||
return "FontSrcList"_string;
|
||||
if (syntax_string == "<declaration-value>?"sv)
|
||||
return "OptionalDeclarationValue"_string;
|
||||
if (syntax_string == "<page-size>"sv)
|
||||
return "PageSize"_string;
|
||||
if (syntax_string == "<percentage [0,∞]>"sv)
|
||||
return "PositivePercentage"_string;
|
||||
if (syntax_string == "<string>"sv)
|
||||
|
||||
Reference in New Issue
Block a user