Skip to content

Commit

Permalink
style: Explicitly specify animation_value_type for scroll-padding.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Hiroyuki Ikezoe authored and emilio committed Mar 13, 2019
1 parent 197065f commit 52db71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/style/properties/longhands/padding.mako.rs
Expand Up @@ -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

0 comments on commit 52db71c

Please sign in to comment.