mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
style: Implement scroll-padding parser and serializer.
Differential Revision: https://phabricator.services.mozilla.com/D20103
This commit is contained in:
parent
79a5e97c13
commit
7cbaaf6734
5 changed files with 50 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue