From 52db71c0bf6d6e5bb65273b9add31a19f7658ed2 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Tue, 26 Feb 2019 10:17:25 +0000 Subject: [PATCH] style: Explicitly specify animation_value_type for scroll-padding. Otherwise the Trait for clamping negative animation value isn't generated thus negative animating results are exposed in computed values. Differential Revision: https://phabricator.services.mozilla.com/D21153 --- components/style/properties/longhands/padding.mako.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/properties/longhands/padding.mako.rs b/components/style/properties/longhands/padding.mako.rs index 6c4e2b32cf9..a1262aee0fc 100644 --- a/components/style/properties/longhands/padding.mako.rs +++ b/components/style/properties/longhands/padding.mako.rs @@ -39,6 +39,6 @@ logical=side[1], logical_group="scroll-padding", spec="https://drafts.csswg.org/css-scroll-snap-1/#propdef-scroll-padding-%s" % side[0], - animation_value_type="ComputedValue", + animation_value_type="NonNegativeLengthPercentageOrAuto", )} % endfor