mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
style: Switch to the new scroll-snap-type syntax for the old scroll snap implementation and drop the scroll-snap-type-{x,y} longhands.
Now scroll-snap-type is a longhand property. Differential Revision: https://phabricator.services.mozilla.com/D21622
This commit is contained in:
parent
2f457ed144
commit
21481e315e
7 changed files with 109 additions and 47 deletions
|
@ -427,18 +427,15 @@ ${helpers.predefined_type(
|
|||
animation_value_type="discrete",
|
||||
)}
|
||||
|
||||
% for axis in ["x", "y"]:
|
||||
${helpers.predefined_type(
|
||||
"scroll-snap-type-" + axis,
|
||||
"ScrollSnapStrictness",
|
||||
"computed::ScrollSnapStrictness::None",
|
||||
products="gecko",
|
||||
needs_context=False,
|
||||
gecko_pref="layout.css.scroll-snap.enabled",
|
||||
spec="Nonstandard (https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-snap-type-x)",
|
||||
animation_value_type="discrete",
|
||||
)}
|
||||
% endfor
|
||||
${helpers.predefined_type(
|
||||
"scroll-snap-type",
|
||||
"ScrollSnapType",
|
||||
"computed::ScrollSnapType::none()",
|
||||
products="gecko",
|
||||
gecko_pref="layout.css.scroll-snap.enabled",
|
||||
spec="https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-type",
|
||||
animation_value_type="discrete",
|
||||
)}
|
||||
|
||||
% for axis in ["x", "y"]:
|
||||
${helpers.predefined_type(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue