Skip to content

Commit 2b95bec

Browse files
committed
[css-grid] Re-add the 'position all the non-auto-positioned elements' line to the placement algo.
1 parent fc16860 commit 2b95bec

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

css-grid/Overview.bs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2526,7 +2526,9 @@ Grid Item Placement Algorithm</h3>
25262526
If it is instead set to ''grid-auto-flow/column'',
25272527
swap all mentions of rows and columns, inline and block, etc. in this algorithm.
25282528

2529-
1. <b>Process the items locked to a given row.</b>
2529+
1. <strong>Position anything that's not auto-positioned.</strong>
2530+
2531+
2. <strong>Process the items locked to a given row.</strong>
25302532

25312533
For each <a>grid item</a> with a <a>definite row position</a>
25322534
(that is, the 'grid-row-start' and 'grid-row-end' properties define a <a>definite grid position</a>),
@@ -2545,7 +2547,7 @@ Grid Item Placement Algorithm</h3>
25452547
to the earliest (smallest positive index) line index
25462548
that ensures this item’s <a>grid area</a> will not overlap any <a>occupied</a> grid cells.
25472549

2548-
2. <b>Determine the number of columns in the implicit grid.</b>
2550+
3. <strong>Determine the number of columns in the implicit grid.</strong>
25492551

25502552
Set the number of columns in the <a>implicit grid</a> to the larger of:
25512553

@@ -2577,7 +2579,7 @@ Grid Item Placement Algorithm</h3>
25772579
which is larger than the <a>explicit grid</a>’s 5 columns.
25782580
</div>
25792581

2580-
3. <b>Position the remaining grid items.</b>
2582+
4. <strong>Position the remaining grid items.</strong>
25812583

25822584
The <dfn export local-lt="cursor">auto-placement cursor</dfn> defines the current “insertion point” in the grid,
25832585
specified as a pair of row and column <a>grid lines</a>.

0 commit comments

Comments
 (0)