Skip to content

Commit b5659ad

Browse files
committed
[css-anchor-position-1] Specifically subtract the offsets. w3c#8059
1 parent 2a04a12 commit b5659ad

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

css-anchor-position-1/Overview.bs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -923,11 +923,12 @@ to trigger automatic "animation" of the fallback'd properties.
923923
be |el|'s styles after these adjustments.
924924

925925
2. If |el| has a [=snapshotted scroll offset=],
926-
then shift |el|'s margin box's position by the offsets.
926+
then subtract the offsets
927+
from |el|'s margin box's position.
927928

928929
Also, if any of |el|'s [=inset properties=] are non-auto,
929-
add the [=snapshotted scroll offset=] for the appropriate axis
930-
to their values.
930+
subtract the [=snapshotted scroll offset=] for the appropriate axis
931+
from their values.
931932
Recalculate |el|'s [=inset-modified containing block=]
932933
using these shifted values
933934
to obtain the |scroll-adjusted IMCB|.

0 commit comments

Comments
 (0)