style: part 1 - Support parsing ruby-position: alternate

Differential Revision: https://phabricator.services.mozilla.com/D107382
This commit is contained in:
Oriol Brufau 2023-05-16 08:05:27 +02:00
parent b222bd3162
commit 17ae374c65
6 changed files with 91 additions and 6 deletions

View file

@ -495,6 +495,7 @@ class Longhand(Property):
"Percentage",
"PositiveIntegerOrNone",
"Resize",
"RubyPosition",
"SVGOpacity",
"SVGPaintOrder",
"ScrollSnapAlign",

View file

@ -329,13 +329,13 @@ ${helpers.single_keyword(
spec="https://drafts.csswg.org/css-ruby/#ruby-align-property",
)}
${helpers.single_keyword(
${helpers.predefined_type(
"ruby-position",
"over under",
"RubyPosition",
"Default::default()",
engines="gecko",
animation_value_type="discrete",
spec="https://drafts.csswg.org/css-ruby/#ruby-position-property",
gecko_enum_prefix="StyleRubyPosition",
animation_value_type="discrete",
)}
// CSS Writing Modes Module Level 3