style: Implement scroll-snap-align parser and serializer.

https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-align

Differential Revision: https://phabricator.services.mozilla.com/D20205
This commit is contained in:
Hiroyuki Ikezoe 2019-02-18 23:10:08 +00:00 committed by Emilio Cobos Álvarez
parent 7cbaaf6734
commit 22e12a0f52
8 changed files with 97 additions and 3 deletions

View file

@ -417,6 +417,16 @@ ${helpers.single_keyword(
animation_value_type="discrete",
)}
${helpers.predefined_type(
"scroll-snap-align",
"ScrollSnapAlign",
"computed::ScrollSnapAlign::none()",
products="gecko",
gecko_pref="layout.css.scroll-snap-v1.enabled",
spec="https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-align",
animation_value_type="discrete",
)}
% for axis in ["x", "y"]:
${helpers.predefined_type(
"scroll-snap-type-" + axis,