diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-06-06 00:52:09 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-06-06 14:36:00 +0200 |
commit | bc1eef8f5e70ae8a45f204f8c7feed4e2994a29a (patch) | |
tree | dc1b29371399187fe2de88942cad725d6b1b26b6 | |
parent | 8912a594c7dab237c9de781c804c2c6db2eb5d77 (diff) | |
download | servo-bc1eef8f5e70ae8a45f204f8c7feed4e2994a29a.tar.gz servo-bc1eef8f5e70ae8a45f204f8c7feed4e2994a29a.zip |
Use predefined_type for transition-delay
-rw-r--r-- | components/style/properties/longhand/box.mako.rs | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/components/style/properties/longhand/box.mako.rs b/components/style/properties/longhand/box.mako.rs index 7803e182fe1..c3b73da9514 100644 --- a/components/style/properties/longhand/box.mako.rs +++ b/components/style/properties/longhand/box.mako.rs @@ -444,7 +444,7 @@ ${helpers.predefined_type("transition-delay", need_index=True, animation_value_type="none", extra_prefixes="moz webkit", - spec="https://drafts.csswg.org/css-transitions/#propdef-transition-duration")} + spec="https://drafts.csswg.org/css-transitions/#propdef-transition-delay")} <%helpers:vector_longhand name="animation-name" need_index="True" @@ -639,17 +639,16 @@ ${helpers.single_keyword("animation-fill-mode", spec="https://drafts.csswg.org/css-animations/#propdef-animation-fill-mode", allowed_in_keyframe_block=False)} -<%helpers:vector_longhand name="animation-delay" - need_index="True" +${helpers.predefined_type("animation-delay", + "Time", + "computed::Time::zero()", + initial_specified_value="specified::Time::zero()", + vector=True, + need_index=True, animation_value_type="none", extra_prefixes="moz webkit", spec="https://drafts.csswg.org/css-animations/#propdef-animation-delay", - allowed_in_keyframe_block="False"> - pub use properties::longhands::transition_delay::single_value::computed_value; - pub use properties::longhands::transition_delay::single_value::get_initial_specified_value; - pub use properties::longhands::transition_delay::single_value::{get_initial_value, parse}; - pub use properties::longhands::transition_delay::single_value::SpecifiedValue; -</%helpers:vector_longhand> + allowed_in_keyframe_block=False)} <%helpers:longhand products="gecko" name="scroll-snap-points-y" animation_value_type="none" spec="Nonstandard (https://www.w3.org/TR/2015/WD-css-snappoints-1-20150326/#scroll-snap-points)"> |