Skip to content

Commit b6a9fad

Browse files
committed
[css-grid] Tweak the abspos issues.
--HG-- extra : rebase_source : 16b5ad5367d3e9e9b013ca0807f2960837afa34f
1 parent 4455e9e commit b6a9fad

2 files changed

Lines changed: 10 additions & 37 deletions

File tree

css-grid/Overview.html

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,21 +1161,10 @@ <h3 id=abspos-items><span class=secno>4.2. </span> Absolutely-positioned
11611161
href="#grid-container"><i>grid container</i></a> does not participate
11621162
directly in grid layout. Its static position is ???
11631163

1164-
<div class=issue>
1165-
<ul>
1166-
<li>The before/start corner of the grid container? (In this case, should
1167-
we adjust Flexbox to match?)
1168-
1169-
<li>The before/start edge of the cell it would be placed in, if it were a
1170-
1x1 auto-placed grid item? (Don't let it generate new rows/columns,
1171-
though, which complicates things.) (This is closer to Flexbox's current
1172-
behavior.)
1173-
</ul>
1174-
</div>
1175-
1176-
<p class=issue> Below is a proposal for how to deal with abspos in grid
1177-
containers. It gives us many of the capabilities of <a href="#CSS3GRID"
1178-
rel=biblioentry>[CSS3GRID]<!--{{CSS3GRID}}--></a>.
1164+
<p class=issue> The static position is affected by the alignment
1165+
properties, as if it was a 0x0 thing floating around in the containing
1166+
block. (Defaults to the start/start corner, since ‘<code
1167+
class=property>stretch</code>’ can't do anything to it.)
11791168

11801169
<p> If an absolutely positioned element's <i>containing block</i> is
11811170
generated by a <a href="#grid-container"><i>grid container</i></a>, the <a
@@ -1192,6 +1181,8 @@ <h3 id=abspos-items><span class=secno>4.2. </span> Absolutely-positioned
11921181
<li>the padding edge of the <a href="#grid-container"><i>grid
11931182
container</i></a> (as normal for abspos)
11941183

1184+
<li>the "default cell" of the grid, whenever we define that
1185+
11951186
<li>the next/previous grid line (as normal for grid items with one ‘<a
11961187
href="#track-size-auto"><code class=css>auto</code></a>’ value in a
11971188
dimension, as it resolves to ‘<code class=css>span 1</code>’)
@@ -3746,16 +3737,6 @@ <h3 class=no-num id=other-references> Other references</h3>
37463737
<dl class=bibliography>
37473738
<dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
37483739
<!---->
3749-
3750-
<dt id=CSS3GRID>[CSS3GRID]
3751-
3752-
<dd>Alex Mogilevsky; Markus Mielke. <a
3753-
href="http://www.w3.org/TR/2007/WD-css3-grid-20070905"><cite>CSS Grid
3754-
Positioning Module Level 3.</cite></a> 5 September 2007. W3C Working
3755-
Draft. (Work in progress.) URL: <a
3756-
href="http://www.w3.org/TR/2007/WD-css3-grid-20070905">http://www.w3.org/TR/2007/WD-css3-grid-20070905</a>
3757-
</dd>
3758-
<!---->
37593740
</dl>
37603741
<!--end-informative-->
37613742

css-grid/Overview.src.html

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -832,19 +832,10 @@ <h3 id="abspos-items">
832832
An absolutely-positioned child element of a <i>grid container</i> does not participate directly in grid layout.
833833
Its static position is ???
834834

835-
<div class='issue'>
836-
<ul>
837-
<li>The before/start corner of the grid container?
838-
(In this case, should we adjust Flexbox to match?)
839-
<li>The before/start edge of the cell it would be placed in, if it were a 1x1 auto-placed grid item?
840-
(Don't let it generate new rows/columns, though, which complicates things.)
841-
(This is closer to Flexbox's current behavior.)
842-
</ul>
843-
</div>
844-
845835
<p class='issue'>
846-
Below is a proposal for how to deal with abspos in grid containers.
847-
It gives us many of the capabilities of [[CSS3GRID]].
836+
The static position is affected by the alignment properties,
837+
as if it was a 0x0 thing floating around in the containing block.
838+
(Defaults to the start/start corner, since 'stretch' can't do anything to it.)
848839

849840
<p>
850841
If an absolutely positioned element's <i>containing block</i>
@@ -856,6 +847,7 @@ <h3 id="abspos-items">
856847
<div class="issue">
857848
<ul>
858849
<li>the padding edge of the <i>grid container</i> (as normal for abspos)
850+
<li>the "default cell" of the grid, whenever we define that
859851
<li>the next/previous grid line (as normal for grid items with one ''auto'' value in a dimension, as it resolves to 'span 1')
860852
</ul>
861853
</div>

0 commit comments

Comments
 (0)