File tree 1 file changed +17
-6
lines changed
1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -1773,14 +1773,25 @@ even tho they depend on layout and [=used values=].
1773
1773
1774
1774
1. Let |adjusted styles| be the result of [=applying a position option=] |option| to |el|.
1775
1775
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=] .
1780
-
1781
- 3. Let |el rect| be the size and position of |el|'s margin box,
1776
+ 2. Let |el rect| be the size and position of |el|'s margin box,
1782
1777
when laid out with |adjusted styles|.
1783
1778
1779
+ Let |cb rect| be the size and position of |el|'s [=inset-modified containing block=] .
1780
+
1781
+ 3. If |el| has a [=snapshotted scroll offset=] :
1782
+
1783
+ 1. Set |el rect| to the result of shifting it
1784
+ by the [=snapshotted scroll offset=] .
1785
+
1786
+ 2. Recalculate |el|'s [=inset-modified containing block=] ,
1787
+ with any non-''top/auto'' [=inset property|inset=] values
1788
+ shifted by the [=snapshotted scroll offset=] .
1789
+ Set |cb rect| to this result.
1790
+
1791
+ 3. If |cb rect| was negative-size in either axis
1792
+ and corrected into zero-size,
1793
+ [=iteration/continue=] .
1794
+
1784
1795
4. If |el rect| is not fully contained within |cb rect|,
1785
1796
[=iteration/continue=] .
1786
1797
You can’t perform that action at this time.
0 commit comments