Skip to content

Commit 32d3a5b

Browse files
committed
[css-anchor-position] Fix the use of the scroll snapshot in determining fallback, and close the edge case of a 0-height abspos considered to be fitting in a negative-height CB. #8059
1 parent 4fa6eb4 commit 32d3a5b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

css-anchor-position-1/Overview.bs

+6-5
Original file line numberDiff line numberDiff line change
@@ -1773,12 +1773,13 @@ even tho they depend on layout and [=used values=].
17731773

17741774
1. Let |adjusted styles| be the result of [=applying a position option=] |option| to |el|.
17751775

1776-
2. Let |el rect| be the size and position of |el|'s margin box,
1777-
when laid out with |adjusted styles|.
1778-
Let |cb rect| be the size and position of |el|'s [=inset-modified containing block=].
1776+
2. Let |cb rect| be the size and position of |el|'s [=inset-modified containing block=].
1777+
If |cb rect| had to be adjusted to ensure
1778+
it didn't have a negative size,
1779+
[=iteration/continue=].
17791780

1780-
3. If |el| has a [=snapshotted scroll offset=],
1781-
subtract it from the position of both |el rect| and |cb rect|.
1781+
3. Let |el rect| be the size and position of |el|'s margin box,
1782+
when laid out with |adjusted styles|.
17821783

17831784
4. If |el rect| is not fully contained within |cb rect|,
17841785
[=iteration/continue=].

0 commit comments

Comments
 (0)