Skip to content

Commit d40846a

Browse files
committed
[css-anchor-position-1] Clarify interaction with transitions and animations (tentative) w3c#13048
1 parent 9cef400 commit d40846a

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

css-anchor-position-1/Overview.bs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1993,6 +1993,9 @@ and thus trigger special behavior. These <dfn>fallback-sensitive changes</dfn> i
19931993
* Any of the ''@position-try'' rules referenced by it
19941994
have been added, removed, or mutated.
19951995

1996+
<h5 id="last-successful-recording">
1997+
Recording the [=last successful position option=]</h5>
1998+
19961999
In order to maintain layout stability as much as possible,
19972000
[=determining position fallback styles=] prioritizes the [=last successful position option=],
19982001
which is determined as follows:
@@ -2018,6 +2021,34 @@ which is determined as follows:
20182021
is intentionally identical to the treatment of [=last remembered sizes=].
20192022
</div>
20202023

2024+
ISSUE(13048): The following sections attempt to clarify the interaction with transitions and animations.
2025+
2026+
<h5 id="suspending-fallback-transitions">
2027+
Suspending Fallback During Transitions</h5>
2028+
2029+
The UA must [=determine position fallback styles=]
2030+
for both the start and end states of a [=transition=]
2031+
(see [[CSS-TRANSITIONS-1]])
2032+
that includes properties that could cause a [=fallback-sensitive change=].
2033+
2034+
During a [=transition=] for properties that could cause a [=fallback-sensitive change=], however,
2035+
[=determining position fallback styles=] and
2036+
[=recording the last successful position option=] are suspended.
2037+
2038+
<h5 id="suspending-fallback-animations">
2039+
Suspending Fallback During Animations</h5>
2040+
2041+
If an [=animation=] (see [[CSS-ANIMATIONS-1]] and [[WEB-ANIMATIONS-1]])
2042+
affects any properties that could cause a [=fallback-sensitive change=],
2043+
then the UA must [=determine position fallback styles=]
2044+
for the keyframes that contain those properties (only).
2045+
As fallback determination is order-sensitive,
2046+
later keyframes must take into account the result of earlier keyframes.
2047+
2048+
While animating between these keyframes, however,
2049+
[=determining position fallback styles=] and
2050+
[=recording the last successful position option=] are suspended.
2051+
20212052
<h4 id="applying-options">
20222053
Applying Position Options</h4>
20232054

@@ -2652,6 +2683,11 @@ No Privacy issues have been raised against this document.
26522683
Changes {#changes}
26532684
=======
26542685

2686+
Significant changes since the <a href="https://www.w3.org/TR/2025/WD-css-anchor-position-1-20251222/">22 December 2025 Working Draft</a>:
2687+
2688+
* Clarify positoin fallback interaction with transitions and animation.
2689+
(<a href="https://github.com/w3c/csswg-drafts/issues/13048">Issue 13048</a>)
2690+
26552691
Significant changes since the <a href="https://www.w3.org/TR/2025/WD-css-anchor-position-1-20251007/">7 October 2025 Working Draft</a>:
26562692

26572693
* Add ''flip-x'' and ''flip-y'' to 'position-try-fallbacks'.

0 commit comments

Comments
 (0)