Skip to content

Commit 47c6055

Browse files
committed
[css-grid] Improve sizing of grid containers a bit.
--HG-- extra : rebase_source : 75b712bbc25c32b54a9dbf6c8a15bd9feab3b092
1 parent bfebc13 commit 47c6055

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

css-grid/Overview.bs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,13 @@ Grid Containers: the <a value>grid</a> and ''inline-grid'' 'display' values</h3>
542542

543543
A <i>grid container</i> is sized
544544
using the rules of the formatting context in which it participates.
545-
In a <a>block formatting context</a>,
546-
a <a>grid container’s</a> ''auto'' block size
547-
is its max-content block size.
548-
<span class="issue">The block layout spec should define this.</span>
545+
As a block-level box in a <a>block formatting context</a>,
546+
it is sized like any other block-level box that establishes a formatting context,
547+
and as an inline-level box in an inline formatting context
548+
it is sized as an atomic inline-level box (such as an inline-block).
549+
In both inline and block formatting contexts,
550+
the <i>grid container</i>’s ''auto'' block size is its max-content size.
551+
<span class="issue">The block layout spec should define this?</span>
549552

550553
Grid containers are not block containers,
551554
and so some properties that were designed with the assumption of block layout

css-grid/Overview.html

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -701,10 +701,13 @@ <h3 class="heading settled heading" data-level=3.1 id=grid-containers><span clas
701701

702702
<p> A <a data-link-type=dfn href=#grid-container title="grid container">grid container</a> is sized
703703
using the rules of the formatting context in which it participates.
704-
In a <a data-link-type=dfn title="block formatting context">block formatting context</a>,
705-
a <a data-link-type=dfn href=#grid-container title="grid container’s">grid container’s</a> <a class=css data-link-type=maybe href=#valuedef-auto title=auto>auto</a> block size
706-
is its max-content block size.
707-
<span class=issue id=issue-8669c070><a class=self-link href=#issue-8669c070></a>The block layout spec should define this.</span>
704+
As a block-level box in a <a data-link-type=dfn title="block formatting context">block formatting context</a>,
705+
it is sized like any other block-level box that establishes a formatting context,
706+
and as an inline-level box in an inline formatting context
707+
it is sized as an atomic inline-level box (such as an inline-block).
708+
In both inline and block formatting contexts,
709+
the <a data-link-type=dfn href=#grid-container title="grid container">grid container</a>’s <a class=css data-link-type=maybe href=#valuedef-auto title=auto>auto</a> block size is its max-content size.
710+
<span class=issue id=issue-839d056f><a class=self-link href=#issue-839d056f></a>The block layout spec should define this?</span>
708711

709712
<p> Grid containers are not block containers,
710713
and so some properties that were designed with the assumption of block layout
@@ -3345,7 +3348,7 @@ <h2 class="no-num no-ref heading settled heading" id=property-index><span class=
33453348
<tr><th scope=row><a class=css-code data-link-type=property href=#propdef-grid-area title=grid-area>grid-area</a><td>&lt;grid-line&gt; [ / &lt;grid-line&gt; ]{0,3}<td>see individual properties<td>grid items<td>see individual properties<td>see individual properties<td>visual<td>see individual properties</table></div>
33463349

33473350

3348-
<h2 class="no-num heading settled" id=issues-index><span class=content>Issues Index</span><a class=self-link href=#issues-index></a></h2><div style="counter-reset: issue"><div class=issue>The block layout spec should define this.<a href=#issue-8669c070></a></div>
3351+
<h2 class="no-num heading settled" id=issues-index><span class=content>Issues Index</span><a class=self-link href=#issues-index></a></h2><div style="counter-reset: issue"><div class=issue>The block layout spec should define this?<a href=#issue-839d056f></a></div>
33493352

33503353
<div class=issue>
33513354
We want the ability to collapse grid tracks

0 commit comments

Comments
 (0)