Skip to content

Commit 23f56b7

Browse files
committed
[css-grid] If an abspos's parent *and* positioning root is the same grid container, use the grid-placement properties to find its static position, too.
1 parent 18fddb0 commit 23f56b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

css-grid/Overview.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2536,7 +2536,7 @@ Grid Item Placement Algorithm</h3>
25362536
if there is no room in the <a>explicit grid</a> to place an auto-positioned <a>grid item</a>.
25372537

25382538
Every <a>grid cell</a>
2539-
(in both the <a lt="explicit grid">explicit</a> and <a>implicit grids</a>)
2539+
(in both the <a>explicit</a> and <a>implicit grids</a>)
25402540
can be <dfn>occupied</dfn> or <dfn>unoccupied</dfn>.
25412541
A cell is <a>occupied</a>
25422542
if it's covered by a <a>named grid area</a>,
@@ -2782,6 +2782,8 @@ With a Grid Container as Parent</h3>
27822782
is determined as if it were the sole grid item
27832783
in a <a>grid area</a>
27842784
whose edges coincide with the padding edges of the <a>grid container</a>.
2785+
However, if the <a>grid container</a> parent is also the generator of the absolutely positioned element's <a>containing block</a>,
2786+
instead use the <a>grid area</a> determined in [[#abspos-items]].
27852787

27862788
Note: Note that this position is affected by the values of 'justify-self' and 'align-self' on the child,
27872789
and that, as in most other layout models,

0 commit comments

Comments
 (0)