Skip to content

Commit f2b1f20

Browse files
committed
[css-grid-1][css-grid-2] Remove staticpos dependency on grid positioning properties #7661
1 parent ccd7588 commit f2b1f20

File tree

2 files changed

+29
-4
lines changed

2 files changed

+29
-4
lines changed

css-grid-1/Overview.bs

+15-2
Original file line numberDiff line numberDiff line change
@@ -3489,8 +3489,6 @@ With a Grid Container as Parent</h3>
34893489
is determined as if it were the sole grid item
34903490
in a <a>grid area</a>
34913491
whose edges coincide with the content edges of the <a>grid container</a>.
3492-
However, if the <a>grid container</a> parent is also the generator of the absolutely positioned element's <a>containing block</a>,
3493-
instead use the <a>grid area</a> determined in [[#abspos-items]].
34943492

34953493
Note: Note that this position is affected by the values of 'justify-self' and 'align-self' on the child,
34963494
and that, as in most other layout models,
@@ -4889,6 +4887,21 @@ Changes since the <a href="https://www.w3.org/TR/2020/CRD-css-grid-1-20201218/">
48894887
a <a>fixed sizing function</a> of that argument
48904888
<ins>(which can change which tracks continue to receive space in this step)</ins>.</p>
48914889
</blockquote>
4890+
4891+
<li id="change-2020-static-position">
4892+
Remove [=static position=] sensitivity to the [=grid-placement properties=],
4893+
relying always on the [=grid container=] [=content box=].
4894+
(<a href="https://github.com/w3c/csswg-drafts/issues/7661">Issue 7661</a>)
4895+
<blockquote>
4896+
<p>The <a href="https://www.w3.org/TR/CSS2/visudet.html#abs-non-replaced-width">static position</a> [[!CSS2]]
4897+
of an absolutely-positioned child of a <a>grid container</a>
4898+
is determined as if it were the sole grid item
4899+
in a <a>grid area</a>
4900+
whose edges coincide with the content edges of the <a>grid container</a>.
4901+
<del>However, if the <a>grid container</a> parent is also the generator of the absolutely positioned element's <a>containing block</a>,
4902+
instead use the <a>grid area</a> determined in [[#abspos-items]].</del>
4903+
</blockquote>
4904+
48924905
</ul>
48934906

48944907
<h3 id="changes-202008">

css-grid-2/Overview.bs

+14-2
Original file line numberDiff line numberDiff line change
@@ -4025,8 +4025,6 @@ With a Grid Container as Parent</h3>
40254025
is determined as if it were the sole grid item
40264026
in a <a>grid area</a>
40274027
whose edges coincide with the content edges of the <a>grid container</a>.
4028-
However, if the <a>grid container</a> parent is also the generator of the absolutely positioned element's <a>containing block</a>,
4029-
instead use the <a>grid area</a> determined in [[#abspos-items]].
40304028

40314029
Note: Note that this position is affected by the values of 'justify-self' and 'align-self' on the child,
40324030
and that, as in most other layout models,
@@ -5491,6 +5489,20 @@ Changes since the <a href="https://www.w3.org/TR/2020/CRD-css-grid-2-20201218/">
54915489
<a href="http://www.w3.org/TR/css-grid-1/#change-2016-stretch-algo">earlier change</a>
54925490
to better incorporate ''justify-content/stretch'' handling into the algorithm.
54935491
(<a href="https://github.com/w3c/csswg-drafts/issues/5966">Issue 5966</a>)
5492+
5493+
<li id="change-2020-static-position">
5494+
Remove [=static position=] sensitivity to the [=grid-placement properties=],
5495+
relying always on the [=grid container=] [=content box=].
5496+
(<a href="https://github.com/w3c/csswg-drafts/issues/7661">Issue 7661</a>)
5497+
<blockquote>
5498+
<p>The <a href="https://www.w3.org/TR/CSS2/visudet.html#abs-non-replaced-width">static position</a> [[!CSS2]]
5499+
of an absolutely-positioned child of a <a>grid container</a>
5500+
is determined as if it were the sole grid item
5501+
in a <a>grid area</a>
5502+
whose edges coincide with the content edges of the <a>grid container</a>.
5503+
<del>However, if the <a>grid container</a> parent is also the generator of the absolutely positioned element's <a>containing block</a>,
5504+
instead use the <a>grid area</a> determined in [[#abspos-items]].</del>
5505+
</blockquote>
54945506
</ul>
54955507

54965508
<h3 id="changes-202008">

0 commit comments

Comments
 (0)