Skip to content

Commit 3cf4304

Browse files
committed
[css-anchor-position-1] Fallbacks are based only on changes in base style (ignoring animations/transitions). #13048
1 parent f54e317 commit 3cf4304

File tree

1 file changed

+6
-28
lines changed

1 file changed

+6
-28
lines changed

‎css-anchor-position-1/Overview.bs‎

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,7 +1936,8 @@ This limit must be <em>at least</em> five.
19361936
<div algorithm="determine position fallback styles">
19371937
To <dfn>determine position fallback styles</dfn> for an element |abspos|:
19381938

1939-
1. Let |current styles| be the current used styles of |abspos|
1939+
1. Let |current styles| be the current used styles of |abspos|,
1940+
as derived from the [=computed base style=]
19401941
(which might be the result of earlier fallback).
19411942

19421943
2. [=list/For each=] |option| in the [=position options list=]:
@@ -2014,6 +2015,10 @@ and thus trigger special behavior. These <dfn>fallback-sensitive changes</dfn> i
20142015
* Any of the ''@position-try'' rules referenced by it
20152016
have been added, removed, or mutated.
20162017

2018+
For this purpose, only changes to the <dfn>computed base style</dfn> are considered,
2019+
i.e. the [=computed style=] ignoring any declarations originating
2020+
from the Transitions or Animations [=cascade origins=].
2021+
20172022
<h5 id="last-successful-recording">
20182023
Recording the [=last successful position option=]</h5>
20192024

@@ -2042,33 +2047,6 @@ which is determined as follows:
20422047
is intentionally identical to the treatment of [=last remembered sizes=].
20432048
</div>
20442049

2045-
ISSUE(13048): The following sections attempt to clarify the interaction with transitions and animations.
2046-
2047-
<h5 id="suspending-fallback-transitions">
2048-
Suspending Fallback During Transitions</h5>
2049-
2050-
The UA must [=determine position fallback styles=]
2051-
for both the start and end states of a [=transition=]
2052-
(see [[CSS-TRANSITIONS-1]])
2053-
that includes properties that could cause a [=fallback-sensitive change=].
2054-
2055-
During a [=transition=] for properties that could cause a [=fallback-sensitive change=], however,
2056-
[=determining position fallback styles=] and
2057-
[=recording the last successful position option=] are suspended.
2058-
2059-
<h5 id="suspending-fallback-animations">
2060-
Suspending Fallback During Animations</h5>
2061-
2062-
If an [=animation=] (see [[CSS-ANIMATIONS-1]] and [[WEB-ANIMATIONS-1]])
2063-
affects any properties that could cause a [=fallback-sensitive change=],
2064-
then the UA must [=determine position fallback styles=]
2065-
for the keyframes that contain those properties (only).
2066-
As fallback determination is order-sensitive,
2067-
later keyframes must take into account the result of earlier keyframes.
2068-
2069-
While animating between these keyframes, however,
2070-
[=determining position fallback styles=] and
2071-
[=recording the last successful position option=] are suspended.
20722050

20732051
<h4 id="applying-options">
20742052
Applying Position Options</h4>

0 commit comments

Comments
 (0)