Skip to content

Commit 3779a47

Browse files
committed
[css-anchor-position] Ensure that inset-area gets the same scroll-shifting that manual inset usage does.
1 parent b4f1749 commit 3779a47

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

css-anchor-position-1/Overview.bs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,18 @@ even tho they depend on layout and [=used values=].
17861786
2. Recalculate |el|'s [=inset-modified containing block=],
17871787
with any non-''top/auto'' [=inset property|inset=] values
17881788
shifted by the [=snapshotted scroll offset=].
1789+
1790+
If |el| has a non-''inset-area/none'' 'inset-area' value,
1791+
then for the purpose of the preceding calculation,
1792+
shift the value of ''anchor(start)'' and ''anchor(end)''
1793+
in the [=inset-area grid=]
1794+
by the [=snapshotted scroll offset=] as well.
1795+
1796+
Note: In other words, ''top: anchor(bottom); bottom: auto;''
1797+
and ''inset-area: bottom;''
1798+
should result in the same IMCB
1799+
for the purpose of these overflow calculations.
1800+
17891801
Set |cb rect| to this result.
17901802

17911803
3. If |cb rect| was negative-size in either axis

0 commit comments

Comments
 (0)