Skip to content

Commit f8fe02d

Browse files
committed
[css-anchor-position-1] Fix conditionals on last successful option handling #12653
1 parent ba29ae8 commit f8fe02d

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

css-anchor-position-1/Overview.bs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2084,8 +2084,7 @@ even though they depend on layout and [=used values=].
20842084

20852085
ISSUE: Rewrite this section to be less confusing and more correct.
20862086
See <a href="https://github.com/w3c/csswg-drafts/issues/12818">Issue 12818</a>,
2087-
<a href="https://github.com/w3c/csswg-drafts/issues/12890">Issue 12890</a>,
2088-
<a href="https://github.com/w3c/csswg-drafts/issues/12653">Issue 12653</a>.
2087+
<a href="https://github.com/w3c/csswg-drafts/issues/12890">Issue 12890</a>.
20892088

20902089
<div algorithm>
20912090
To <dfn>apply a position option</dfn> to a box's element |el|,
@@ -2174,12 +2173,7 @@ laying out later boxes cannot change this decision.
21742173
<div algorithm="remember or forget the last successful position option">
21752174
At the time that {{ResizeObserver}} events are determined and delivered:
21762175

2177-
* If a box |el| is [=absolutely positioned=],
2178-
set its <dfn export>last successful position option</dfn>
2179-
to the set of [=accepted @position-try properties=] (and values)
2180-
that it's currently using.
2181-
2182-
* Otherwise, if |el| has a [=last successful position option=]
2176+
* If |el| has a [=last successful position option=]
21832177
remove its [=last successful position option=]
21842178
if any of the following are true:
21852179

@@ -2196,6 +2190,11 @@ laying out later boxes cannot change this decision.
21962190
to the set of [=accepted @position-try properties=] (and values)
21972191
that it's now using.
21982192

2193+
* Otherwise, if a box |el| is [=absolutely positioned=],
2194+
set its <dfn export>last successful position option</dfn>
2195+
to the set of [=accepted @position-try properties=] (and values)
2196+
that it's currently using.
2197+
21992198
Note: The timing of this recording/removal
22002199
is intentionally identical to the treatment of [=last remembered sizes=].
22012200
</div>

0 commit comments

Comments
 (0)