Skip to content

Commit 1ef1262

Browse files
committed
[css-contain-2] Replace the manual description of animation updates by waving at Animation/Transitions 2. Fixes #5611.
1 parent 81ce601 commit 1ef1262

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

css-contain-2/Overview.bs

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1660,28 +1660,19 @@ Restrictions and Clarifications {#cv-notes}
16601660

16611661
If script queries the style of a [=skipped=] element
16621662
(causing a [=style change event=])
1663-
such that knowing the state of animations is required
1663+
such that knowing the state of animations or transitions is required
16641664
to return correct information,
1665-
animations are "refreshed" at that moment
1665+
animation and transitions are sampled
16661666
according to the styles at the time of that [=style change event=]:
1667-
new animations are created if necessary;
1668-
existing animations are advanced
1669-
to the point on their timeline they would have been at
1670-
were they never skipped at all;
1671-
animations that have would have ended since the last "refresh"
1672-
are ended.
1673-
1674-
If a transition or animation-related event would have been triggered
1675-
as a result of changes occurring during the "refresh" interval,
1676-
they are fired when the animations are "refreshed",
1677-
in the same order they would have originally fired in
1678-
had the element never been [=skipped=].
1679-
If multiple iterations of an animation would have completed during this period,
1680-
only one {{animationiteration}} event must be triggered,
1681-
ordered as if it were triggered at the first completed iteration during the refresh interval.
1667+
1668+
[[css-animations-2#events]] and [[css-transitions-2#events]]
1669+
defines what objects are created
1670+
and what events are fired,
1671+
with what data,
1672+
when an animation or transition is updated,.
16821673

16831674
When an element stops being [=skipped=],
1684-
animations are refreshed
1675+
animations and transitions are sampled
16851676
and then resume advancing on their timelines as normal from that point.
16861677

16871678
Note: Overall, this is similar to the behavior of transitions/animations

0 commit comments

Comments
 (0)