Skip to content

Commit 532bc16

Browse files
committed
[css-grid] Broaden what needs to be swapped in the auto-placement algo.
--HG-- extra : rebase_source : 065b8165e712cf01d4dd60ae87f931ad19a1352d
1 parent 1fb760c commit 532bc16

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

css-grid/Overview.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2243,9 +2243,10 @@ Grid Item Placement Algorithm</h3>
22432243
to contain all of the grid items.
22442244

22452245
To aid in clarity,
2246-
this algorithm is written with the assumption that 'grid-auto-flow' is set to ''grid-auto-flow/row''.
2246+
this algorithm is written with the assumption that 'grid-auto-flow'
2247+
has an <<auto-flow-direction>> of ''grid-auto-flow/row''.
22472248
If it is instead set to ''grid-auto-flow/column'',
2248-
swap all mentions of rows and columns in this algorithm.
2249+
swap all mentions of rows and columns, inline and block, etc. in this algorithm.
22492250

22502251
For the purpose of this algorithm,
22512252
an <dfn>occupied grid cell</dfn>

css-grid/Overview.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2256,9 +2256,10 @@ <h3 class="heading settled" data-level=8.5 id=auto-placement-algo><span class=se
22562256
to contain all of the grid items.</p>
22572257

22582258
<p>To aid in clarity,
2259-
this algorithm is written with the assumption that <a class=property data-link-type=propdesc href=#propdef-grid-auto-flow title=grid-auto-flow>grid-auto-flow</a> is set to <a class=css data-link-for=grid-auto-flow data-link-type=maybe href=#valdef-grid-auto-flow-auto-flow-direction-row title=row>row</a>.
2259+
this algorithm is written with the assumption that <a class=property data-link-type=propdesc href=#propdef-grid-auto-flow title=grid-auto-flow>grid-auto-flow</a>
2260+
has an <a class="production css" data-link-type=type href=#typedef-auto-flow-direction title="<auto-flow-direction>">&lt;auto-flow-direction&gt;</a> of <a class=css data-link-for=grid-auto-flow data-link-type=maybe href=#valdef-grid-auto-flow-auto-flow-direction-row title=row>row</a>.
22602261
If it is instead set to <a class=css data-link-for=grid-auto-flow data-link-type=maybe href=#valdef-grid-auto-flow-auto-flow-direction-column title=column>column</a>,
2261-
swap all mentions of rows and columns in this algorithm.</p>
2262+
swap all mentions of rows and columns, inline and block, etc. in this algorithm.</p>
22622263

22632264
<p>For the purpose of this algorithm,
22642265
an <dfn data-dfn-type=dfn data-noexport="" id=occupied-grid-cell>occupied grid cell<a class=self-link href=#occupied-grid-cell></a></dfn>

0 commit comments

Comments
 (0)