Skip to content

Commit 0f6c719

Browse files
author
SelenIT
committed
Minor fixes of the example for grid-auto-flow section
Two fixes of the example in the `grid-auto-flow` section of the spec: 1. Markup correction — making IDs unique 2. Updating the CSS to match the example rendering (without adding `dense`, the departments block will render in the last row, not in the first, at least by my understanding and the current Blink experimental implementation: http://codepen.io/SelenIT/pen/JdmKMK)
1 parent 659f5f3 commit 0f6c719

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

css-grid/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1878,7 +1878,7 @@ Sizing Auto-generated Rows and Columns: the 'grid-auto-rows' and 'grid-auto-colu
18781878
/* Define three columns, all content-sized,
18791879
and name the corresponding lines. */
18801880
grid-template-columns: [labels] auto [controls] auto [oversized] auto;
1881-
grid-auto-flow: row;
1881+
grid-auto-flow: row dense;
18821882
}
18831883
form > label {
18841884
/* Place all labels in the "labels" column and
@@ -1893,7 +1893,7 @@ Sizing Auto-generated Rows and Columns: the 'grid-auto-rows' and 'grid-auto-colu
18931893
grid-row: auto;
18941894
}
18951895

1896-
#department {
1896+
#department-block {
18971897
/* Auto place this item in the "oversized" column
18981898
in the first row where an area that spans three rows
18991899
won't overlap other explicitly placed items or areas
@@ -1931,7 +1931,7 @@ Sizing Auto-generated Rows and Columns: the 'grid-auto-rows' and 'grid-auto-colu
19311931
<label for="zip">Zip:</label>
19321932
<input type="text" id="zip" name="zip" />
19331933

1934-
<div id="department">
1934+
<div id="department-block">
19351935
<label for="department">Department:</label>
19361936
<select id="department" name="department" multiple>
19371937
<option value="finance">Finance</option>

0 commit comments

Comments
 (0)