Permalink
Browse files

style: Use the style system's LengthPercentage for shape-margin.

This also makes us pass a few WPTs because we stop losing precision when
serializing the computed value.

Differential Revision: https://phabricator.services.mozilla.com/D17738
  • Loading branch information...
emilio committed Jan 26, 2019
1 parent 15f503d commit 13e12d23f3818a68847f28f3a3fac3220d134cd4
Showing with 2 additions and 1 deletion.
  1. +1 −1 components/style/properties/gecko.mako.rs
  2. +1 −0 components/style/values/generics/mod.rs
@@ -1396,7 +1396,7 @@ impl Clone for ${style_struct.gecko_struct_name} {
"MozLength": impl_style_coord,
"MozScriptMinSize": impl_absolute_length,
"MozScriptSizeMultiplier": impl_simple,
"NonNegativeLengthPercentage": impl_style_coord,
"NonNegativeLengthPercentage": impl_simple,
"NonNegativeNumber": impl_simple,
"Number": impl_simple,
"Opacity": impl_simple,
@@ -174,6 +174,7 @@ impl SpecifiedValueInfo for CounterStyleOrNone {
ToComputedValue,
ToCss,
)]
#[repr(transparent)]
pub struct NonNegative<T>(pub T);

/// A wrapper of greater-than-or-equal-to-one values.

0 comments on commit 13e12d2

Please sign in to comment.