Skip to content

Commit 094ae99

Browse files
committed
[css-grid] Resolve abspos 'auto' offsets to padding edge of grid container, per WG resolution.
1 parent 253b0d5 commit 094ae99

2 files changed

Lines changed: 3 additions & 23 deletions

File tree

css-grid/Overview.html

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,20 +1164,8 @@ <h3 id=abspos-items><span class=secno>4.2. </span> Absolutely-positioned
11641164
href="#grid-item"><i>grid items</i></a>. In this case, an ‘<a
11651165
href="#track-size-auto"><code class=css>auto</code></a>’ value for a <a
11661166
href="#grid-placement-properties"><i>grid-placement property</i></a>
1167-
indicates ...
1168-
1169-
<div class=issue>
1170-
<ul>
1171-
<li>the padding edge of the <a href="#grid-container"><i>grid
1172-
container</i></a> (as normal for abspos)
1173-
1174-
<li>the "default cell" of the grid, whenever we define that
1175-
1176-
<li>the next/previous grid line (as normal for grid items with one ‘<a
1177-
href="#track-size-auto"><code class=css>auto</code></a>’ value in a
1178-
dimension, as it resolves to ‘<code class=css>span 1</code>’)
1179-
</ul>
1180-
</div>
1167+
indicates the corresponding padding edge of the <a
1168+
href="#grid-container"><i>grid container</i></a>.
11811169

11821170
<p class=note> This can allow an abspos to "skip past" intervening grid
11831171
containers, and resolve its grid-placement properties against a grid

css-grid/Overview.src.html

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -839,15 +839,7 @@ <h3 id="abspos-items">
839839
is generated by a <i>grid container</i>,
840840
the <i>grid-placement properties</i> can be used to constrain it to a particular <i>grid area</i>,
841841
similar to how they affect regular <i>grid items</i>.
842-
In this case, an ''auto'' value for a <i>grid-placement property</i> indicates ...
843-
844-
<div class="issue">
845-
<ul>
846-
<li>the padding edge of the <i>grid container</i> (as normal for abspos)
847-
<li>the "default cell" of the grid, whenever we define that
848-
<li>the next/previous grid line (as normal for grid items with one ''auto'' value in a dimension, as it resolves to 'span 1')
849-
</ul>
850-
</div>
842+
In this case, an ''auto'' value for a <i>grid-placement property</i> indicates the corresponding padding edge of the <i>grid container</i>.
851843

852844
<p class='note'>
853845
This can allow an abspos to "skip past" intervening grid containers,

0 commit comments

Comments
 (0)