Skip to content

Commit d72a66f

Browse files
committed
[css-grid] Add sparse/dense switch to grid-auto-flow.
--HG-- extra : rebase_source : 5f3a23b9f476f174bbafdf2cdf0a1c741286ccff
1 parent d449548 commit d72a66f

2 files changed

Lines changed: 29 additions & 6 deletions

File tree

css-grid/Overview.html

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
rel=dcterms.rights>
1212
<meta content="CSS Grid Layout" name=dcterms.title>
1313
<meta content=text name=dcterms.type>
14-
<meta content=2013-08-08 name=dcterms.date>
14+
<meta content=2013-08-14 name=dcterms.date>
1515
<meta content="Tab Atkins Jr." name=dcterms.creator>
1616
<meta content="Elika J. Etemad" name=dcterms.creator>
1717
<meta content="Rossen Atanassov" name=dcterms.creator>
@@ -59,11 +59,12 @@
5959

6060
<h1 class=title id=title>CSS Grid Layout</h1>
6161

62-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft, 8 August 2013</h2>
62+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft, 14 August
63+
2013</h2>
6364

6465
<dl>
6566
<dt>This version:
66-
<!-- <dd><a href="http://dev.w3.org/csswg/css3-grid-layout/">http://www.w3.org/TR/2013/WD-css3-grid-layout-20130808/</a> -->
67+
<!-- <dd><a href="http://dev.w3.org/csswg/css3-grid-layout/">http://www.w3.org/TR/2013/WD-css3-grid-layout-20130814/</a> -->
6768

6869
<dd><a
6970
href="http://dev.w3.org/csswg/css3-grid-layout/">http://dev.w3.org/csswg/css3-grid-layout/</a>
@@ -2354,7 +2355,7 @@ <h3 id=grid-auto-flow-property><span class=secno>6.3. </span> Automatic
23542355
<tr>
23552356
<td>Value:
23562357

2357-
<td>rows | columns
2358+
<td>[ rows | columns ] && dense?
23582359

23592360
<tr>
23602361
<td>Initial:
@@ -2405,6 +2406,15 @@ <h3 id=grid-auto-flow-property><span class=secno>6.3. </span> Automatic
24052406

24062407
<dd> The auto-placement algorithm places items by filling each column in
24072408
turn, adding new columns as necessary.
2409+
2410+
<dt><dfn id=dense><code class=css>dense</code></dfn>
2411+
2412+
<dd> If specified, the auto-placement algorithm uses a "dense" packing
2413+
algorithm, which attempts to fill in holes in the grid if smaller items
2414+
come up later. (By default, the auto-placement algorithm is "sparse",
2415+
permanently skipping spaces that it can't fill with the curren grid
2416+
item.)
2417+
<p class=note> Note: This may cause items to appear out-of-order.
24082418
</dl>
24092419

24102420
<p class=issue> Add a value for stacking items on top of each other?
@@ -3879,6 +3889,9 @@ <h2 class=no-num id=index> Index</h2>
38793889
href="#function-ComputeUsedBreadthOfGridTracks"
38803890
title="section 8.2."><strong>8.2.</strong></a>
38813891

3892+
<li><code class=css>dense</code>’, <a href="#dense"
3893+
title="section 6.3."><strong>6.3.</strong></a>
3894+
38823895
<li>DistributeSpaceToTracks, <a href="#function-DistributeSpaceToTracks"
38833896
title="section 8.2."><strong>8.2.</strong></a>
38843897

@@ -4164,7 +4177,7 @@ <h2 class=no-num id=property-index> Property index</h2>
41644177
<tr>
41654178
<th><a class=property href="#grid-auto-flow">grid-auto-flow</a>
41664179

4167-
<td>rows | columns
4180+
<td>[ rows | columns ] && dense?
41684181

41694182
<td>rows
41704183

css-grid/Overview.src.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ <h3 id="grid-auto-flow-property">
18061806

18071807
<tr>
18081808
<td>Value:
1809-
<td>rows | columns
1809+
<td>[ rows | columns ] && dense?
18101810

18111811
<tr>
18121812
<td>Initial:
@@ -1850,6 +1850,16 @@ <h3 id="grid-auto-flow-property">
18501850
The auto-placement algorithm places items
18511851
by filling each column in turn,
18521852
adding new columns as necessary.
1853+
1854+
<dt><dfn>''dense''</dfn>
1855+
<dd>
1856+
If specified, the auto-placement algorithm uses a "dense" packing algorithm,
1857+
which attempts to fill in holes in the grid if smaller items come up later.
1858+
(By default, the auto-placement algorithm is "sparse",
1859+
permanently skipping spaces that it can't fill with the curren grid item.)
1860+
1861+
<p class='note'>
1862+
Note: This may cause items to appear out-of-order.
18531863
</dl>
18541864

18551865
<p class='issue'>

0 commit comments

Comments
 (0)