Bug 1265342 Part 0: Servo changes to add shape-margin. draft
authorBrad Werth <bwerth@mozilla.com>
Thu, 08 Feb 2018 11:00:56 -0800
changeset 762270 0015958921c059b3d461e5fc67c1819ab93e3fee
parent 762269 7aac1638b4b49ea9b487fa99a11b5c1da8de567c
child 762271 b9fb6154933367c8232514f09f72903b399822a9
push id101114
push userbwerth@mozilla.com
push dateThu, 01 Mar 2018 23:33:31 +0000
bugs1265342
milestone60.0a1
Bug 1265342 Part 0: Servo changes to add shape-margin. MozReview-Commit-ID: 99pLZsFA9mj
servo/components/style/properties/longhand/box.mako.rs
--- a/servo/components/style/properties/longhand/box.mako.rs
+++ b/servo/components/style/properties/longhand/box.mako.rs
@@ -637,16 +637,26 @@
     "shape-image-threshold", "Opacity", "0.0",
     products="gecko",
     gecko_pref="layout.css.shape-outside.enabled",
     animation_value_type="ComputedValue",
     spec="https://drafts.csswg.org/css-shapes/#shape-image-threshold-property",
 )}
 
 ${helpers.predefined_type(
+    "shape-margin",
+    "NonNegativeLengthOrPercentage",
+    "computed::NonNegativeLengthOrPercentage::zero()",
+    products="gecko",
+    gecko_pref="layout.css.shape-outside.enabled",
+    animation_value_type="NonNegativeLengthOrPercentage",
+    spec="https://drafts.csswg.org/css-shapes/#shape-margin",
+)}
+
+${helpers.predefined_type(
     "shape-outside",
     "basic_shape::FloatAreaShape",
     "generics::basic_shape::ShapeSource::None",
     products="gecko",
     boxed=True,
     gecko_pref="layout.css.shape-outside.enabled",
     animation_value_type="ComputedValue",
     flags="APPLIES_TO_FIRST_LETTER",