Skip to content

Commit d107d5e

Browse files
committed
[css-animations] Define that animations behave as if will-change was set on animated properties while running/active/delayed
1 parent 67169e2 commit d107d5e

2 files changed

Lines changed: 567 additions & 233 deletions

File tree

css-animations/Overview.bs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,25 @@ Animations</h2>
105105
animations override all normal rules, but are overridden by !important
106106
rules.
107107

108-
If at one point in time there are multiple animations specifying behavior
108+
If at some point in time there are multiple animations specifying behavior
109109
for the same property, the animation which occurs last in the value
110110
of 'animation-name' will override the other animations at that point.
111111

112-
An animation does not affect the computed value before the application of
113-
the animation, before the animation delay has expired, and after the end of
114-
the animation.
112+
An animation does not affect the computed value before the application of the
113+
animation (that is, when the 'animation-name' property is set on an element)
114+
or after it is removed. Furthermore, typically an animation does not affect
115+
the computed value before the animation delay has expired or after the end of
116+
the animation, but may do so depending on the 'animation-fill-mode' property.
115117

116118
While running, the animation computes the value of those properties
117119
it animates. Other values may take precedence over the animated value
118120
according to the CSS cascade ([[!CSS3CASCADE]]).
119121

122+
While an animation is applied but has not finished, or has finished but has
123+
an 'animation-fill-mode' of ''forwards'' or ''both'', the user agent must act
124+
as if the 'will-change' property ([[!css-will-change-1]]) on the element
125+
additionally includes all the properties animated by the animation.
126+
120127
The start time of an animation is the time at which the style applying
121128
the animation and the corresponding @keyframes rule are both resolved.
122129
If an animation is specified for an element but the corresponding

0 commit comments

Comments
 (0)