diff --git a/components/style/properties/data.py b/components/style/properties/data.py index 13496104a04..25d82e7de68 100644 --- a/components/style/properties/data.py +++ b/components/style/properties/data.py @@ -337,6 +337,7 @@ class Longhand(object): "MozScriptMinSize", "MozScriptSizeMultiplier", "NonNegativeNumber", + "Number", "OffsetRotate", "Opacity", "OutlineStyle", diff --git a/components/style/properties/longhands/position.mako.rs b/components/style/properties/longhands/position.mako.rs index 1ebb986d15d..14fc443a352 100644 --- a/components/style/properties/longhands/position.mako.rs +++ b/components/style/properties/longhands/position.mako.rs @@ -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", +)}