mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Add an internal aspect-ratio CSS property.
Differential Revision: https://phabricator.services.mozilla.com/D29037
This commit is contained in:
parent
87e3dadf22
commit
960be2fd01
2 changed files with 15 additions and 0 deletions
|
@ -337,6 +337,7 @@ class Longhand(object):
|
|||
"MozScriptMinSize",
|
||||
"MozScriptSizeMultiplier",
|
||||
"NonNegativeNumber",
|
||||
"Number",
|
||||
"OffsetRotate",
|
||||
"Opacity",
|
||||
"OutlineStyle",
|
||||
|
|
|
@ -391,3 +391,17 @@ ${helpers.predefined_type(
|
|||
animation_value_type="NonNegativeLengthPercentageOrNormal",
|
||||
servo_restyle_damage="reflow",
|
||||
)}
|
||||
|
||||
// NOTE(emilio): Before exposing this property to content, we probably need to
|
||||
// change syntax and such, and make it apply to more elements.
|
||||
//
|
||||
// For now, it's used only for mapped attributes.
|
||||
${helpers.predefined_type(
|
||||
"aspect-ratio",
|
||||
"Number",
|
||||
"computed::Number::zero()",
|
||||
animation_value_type="ComputedValue",
|
||||
spec="Internal, for now",
|
||||
enabled_in="",
|
||||
servo_restyle_damage="reflow",
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue