Skip to content

Commit

Permalink
[css-anchor-position-1] Specifically subtract the offsets. #8059
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Feb 21, 2023
1 parent 2a04a12 commit b5659ad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions css-anchor-position-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -923,11 +923,12 @@ to trigger automatic "animation" of the fallback'd properties.
be |el|'s styles after these adjustments.

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

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

0 comments on commit b5659ad

Please sign in to comment.