From b91ae6b1f9155bd4f17c5403a520568bdf6cac1e Mon Sep 17 00:00:00 2001 From: Brad Werth Date: Thu, 8 Feb 2018 11:00:56 -0800 Subject: [PATCH] style: support shape-margin. Bug: 1265342 Reviewed-by: xidorn MozReview-Commit-ID: 99pLZsFA9mj --- components/style/properties/longhand/box.mako.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/components/style/properties/longhand/box.mako.rs b/components/style/properties/longhand/box.mako.rs index 806afcbd1b6..026a3ca7936 100644 --- a/components/style/properties/longhand/box.mako.rs +++ b/components/style/properties/longhand/box.mako.rs @@ -660,9 +660,21 @@ ${helpers.predefined_type( products="gecko", gecko_pref="layout.css.shape-outside.enabled", animation_value_type="ComputedValue", + flags="APPLIES_TO_FIRST_LETTER", 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", + flags="APPLIES_TO_FIRST_LETTER", + spec="https://drafts.csswg.org/css-shapes/#shape-margin-property", +)} + ${helpers.predefined_type( "shape-outside", "basic_shape::FloatAreaShape",