From 00b3dda3e57b40fc765d4aaa73e9ff200e389c07 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Fri, 6 Jan 2017 19:50:20 +0900 Subject: [PATCH] Add gecko_enum_prefix for animation-direction and animation-fill-mode. r=heycam --- components/style/properties/longhand/box.mako.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/style/properties/longhand/box.mako.rs b/components/style/properties/longhand/box.mako.rs index a363e05deb4..c0954cd693f 100644 --- a/components/style/properties/longhand/box.mako.rs +++ b/components/style/properties/longhand/box.mako.rs @@ -891,11 +891,14 @@ ${helpers.single_keyword("overflow-x", "visible hidden scroll auto", impl ComputedValueAsSpecified for SpecifiedValue {} +<% animation_direction_custom_consts = { "alternate-reverse": "Alternate_reverse" } %> ${helpers.single_keyword("animation-direction", "normal reverse alternate alternate-reverse", need_index=True, animatable=False, vector=True, + gecko_enum_prefix="PlaybackDirection", + custom_consts=animation_direction_custom_consts, spec="https://drafts.csswg.org/css-animations/#propdef-animation-direction", allowed_in_keyframe_block=False)} @@ -915,6 +918,7 @@ ${helpers.single_keyword("animation-fill-mode", need_index=True, animatable=False, vector=True, + gecko_enum_prefix="FillMode", spec="https://drafts.csswg.org/css-animations/#propdef-animation-fill-mode", allowed_in_keyframe_block=False)}