Add gecko_enum_prefix for animation-direction and animation-fill-mode. r=heycam

This commit is contained in:
Hiroyuki Ikezoe 2017-01-06 19:50:20 +09:00 committed by Hiroyuki Ikezoe
parent ff1db63922
commit 00b3dda3e5

View file

@ -891,11 +891,14 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto",
impl ComputedValueAsSpecified for SpecifiedValue {} impl ComputedValueAsSpecified for SpecifiedValue {}
</%helpers:vector_longhand> </%helpers:vector_longhand>
<% animation_direction_custom_consts = { "alternate-reverse": "Alternate_reverse" } %>
${helpers.single_keyword("animation-direction", ${helpers.single_keyword("animation-direction",
"normal reverse alternate alternate-reverse", "normal reverse alternate alternate-reverse",
need_index=True, need_index=True,
animatable=False, animatable=False,
vector=True, vector=True,
gecko_enum_prefix="PlaybackDirection",
custom_consts=animation_direction_custom_consts,
spec="https://drafts.csswg.org/css-animations/#propdef-animation-direction", spec="https://drafts.csswg.org/css-animations/#propdef-animation-direction",
allowed_in_keyframe_block=False)} allowed_in_keyframe_block=False)}
@ -915,6 +918,7 @@ ${helpers.single_keyword("animation-fill-mode",
need_index=True, need_index=True,
animatable=False, animatable=False,
vector=True, vector=True,
gecko_enum_prefix="FillMode",
spec="https://drafts.csswg.org/css-animations/#propdef-animation-fill-mode", spec="https://drafts.csswg.org/css-animations/#propdef-animation-fill-mode",
allowed_in_keyframe_block=False)} allowed_in_keyframe_block=False)}