mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Only allow animation-timing-function in @keyframes
CSS animations used to erroneously indicate that 'animation-play-state'
is permitted in @keyframes. It is not and is non-sensical to allow it
there. This mistake was faithfully transferred into Servo code (although
we also make 'animation-timing-function' which is what the spec text
meant to say).
The spec has been updated[1] and so we should update the Servo code
accordingly.
[1] adeb3434c5
This commit is contained in:
parent
46ffcbaf7b
commit
b34e331fa2
2 changed files with 9 additions and 8 deletions
|
@ -591,6 +591,8 @@ ${helpers.predefined_type("animation-duration",
|
|||
extra_prefixes="moz webkit",
|
||||
spec="https://drafts.csswg.org/css-transitions/#propdef-transition-duration")}
|
||||
|
||||
// animation-timing-function is the exception to the rule for allowed_in_keyframe_block:
|
||||
// https://drafts.csswg.org/css-animations/#keyframes
|
||||
${helpers.predefined_type("animation-timing-function",
|
||||
"TimingFunction",
|
||||
"computed::TimingFunction::ease()",
|
||||
|
@ -671,8 +673,6 @@ ${helpers.single_keyword("animation-direction",
|
|||
spec="https://drafts.csswg.org/css-animations/#propdef-animation-direction",
|
||||
allowed_in_keyframe_block=False)}
|
||||
|
||||
// animation-play-state is the exception to the rule for allowed_in_keyframe_block:
|
||||
// https://drafts.csswg.org/css-animations/#keyframes
|
||||
${helpers.single_keyword("animation-play-state",
|
||||
"running paused",
|
||||
need_clone=True,
|
||||
|
@ -681,7 +681,7 @@ ${helpers.single_keyword("animation-play-state",
|
|||
vector=True,
|
||||
extra_prefixes="moz webkit",
|
||||
spec="https://drafts.csswg.org/css-animations/#propdef-animation-play-state",
|
||||
allowed_in_keyframe_block=True)}
|
||||
allowed_in_keyframe_block=False)}
|
||||
|
||||
${helpers.single_keyword("animation-fill-mode",
|
||||
"none forwards backwards both",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue