Skip to content
Permalink
Browse files

style: Add an internal aspect-ratio CSS property.

  • Loading branch information...
emilio committed Jun 26, 2019
1 parent 87e3dad commit 960be2fd0145a4b6d43f0125c75ddf680924b3f1
Showing with 15 additions and 0 deletions.
  1. +1 −0 components/style/properties/data.py
  2. +14 −0 components/style/properties/longhands/position.mako.rs
@@ -337,6 +337,7 @@ def specified_is_copy(self):
"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",
)}

0 comments on commit 960be2f

Please sign in to comment.
You can’t perform that action at this time.