style: Implement scroll-padding parser and serializer.

Differential Revision: https://phabricator.services.mozilla.com/D20103
This commit is contained in:
Hiroyuki Ikezoe 2019-02-18 02:46:09 +00:00 committed by Emilio Cobos Álvarez
parent 79a5e97c13
commit 7cbaaf6734
5 changed files with 50 additions and 2 deletions

View file

@ -28,3 +28,17 @@
servo_restyle_damage="reflow rebuild_and_reflow_inline"
)}
% endfor
% for side in ALL_SIDES:
${helpers.predefined_type(
"scroll-padding-%s" % side[0],
"NonNegativeLengthPercentageOrAuto",
"computed::NonNegativeLengthPercentageOrAuto::auto()",
products="gecko",
gecko_pref="layout.css.scroll-snap-v1.enabled",
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",
)}
% endfor