|
36 | 36 | <h1>CSS Grid Template Layout Module</h1> |
37 | 37 | <!--=================================================================--> |
38 | 38 | <h2 class="no-num no-toc" id=longstatus-date-3-august-2004>Editor's Draft |
39 | | - 16 May 2012</h2> |
| 39 | + 23 May 2012</h2> |
40 | 40 |
|
41 | 41 | <dl> |
42 | 42 | <dt>This version: |
43 | 43 |
|
44 | 44 | <dd><a |
45 | | - href="http://www.w3.org/TR/2012/ED-css3-layout-20120516/">http://www.w3.org/TR/2012/ED-css3-layout-20120516/</a> |
| 45 | + href="http://www.w3.org/TR/2012/ED-css3-layout-20120523/">http://www.w3.org/TR/2012/ED-css3-layout-20120523/</a> |
46 | 46 |
|
47 | 47 |
|
48 | 48 | <dt>Latest version: |
@@ -548,12 +548,12 @@ <h3 id=summary-and-examples><span class=secno>1.1. </span>Summary and |
548 | 548 | “zunflower” design</a> of the CSS Zen Garden could be done: |
549 | 549 |
|
550 | 550 | <pre> |
551 | | -#container {grid: "abc"} |
552 | | -#container::slot(a) {box-shadow: 0.5em 0.5em 0.5em; z-index: 1} |
553 | | -#container::slot(b) {box-shadow: 0.5em 0.5em 0.5em; margin-left: -2em} |
554 | | -#intro {flow: a} |
555 | | -#supportingText {flow: b} |
556 | | -#linkList {flow: c} |
| 551 | +#container {grid: "ABC"} |
| 552 | +#container::slot(A) {box-shadow: 0.5em 0.5em 0.5em; z-index: 1} |
| 553 | +#container::slot(B) {box-shadow: 0.5em 0.5em 0.5em; margin-left: -2em} |
| 554 | +#intro {flow: A} |
| 555 | +#supportingText {flow: B} |
| 556 | +#linkList {flow: C} |
557 | 557 | </pre> |
558 | 558 | </div> |
559 | 559 |
|
@@ -993,8 +993,9 @@ <h2 id=declaring-templates><span class=secno>2. </span>Declaring templates</h2> |
993 | 993 | <p>Grid templates are declared with the ‘<a href="#grid-template0"><code |
994 | 994 | class=property>grid-template</code></a>’, ‘<a href="#grid-rows"><code |
995 | 995 | class=property>grid-rows</code></a>’, ‘<a href="#grid-columns"><code |
996 | | - class=property>grid-columns</code></a>’ and ‘<a href="#grid"><code |
997 | | - class=property>grid</code></a>’ properties, defined below. |
| 996 | + class=property>grid-columns</code></a>’ properties (or the ‘<a |
| 997 | + href="#grid"><code class=property>grid</code></a>’ shorthand property), |
| 998 | + defined below. |
998 | 999 |
|
999 | 1000 | <p>An element that has a grid template is called a <dfn |
1000 | 1001 | id=grid-element.>grid element.</dfn> More precisely: an element is a grid |
@@ -1142,11 +1143,19 @@ <h3 id=grid-template><span class=secno>2.1. </span>Declaring a template: |
1142 | 1143 | <p>Non-rectangular slots and multiple slots with the same letter are |
1143 | 1144 | illegal. A template without any letter or “*” is illegal. A template |
1144 | 1145 | with more than one “*” slot is illegal. Strings with different numbers |
1145 | | - of columns are illegal. These errors cause the declaration to be ignored. |
| 1146 | + of columns (<em>before</em> padding with “.”, see below) are illegal. |
| 1147 | + These errors cause the declaration to be ignored. |
1146 | 1148 |
|
1147 | 1149 | <p class=note>Note: non-rectangular and disconnected regions may be |
1148 | 1150 | permitted in a future update of CSS. |
1149 | 1151 |
|
| 1152 | + <p>If there are fewer symbols in a string than the <a |
| 1153 | + href="#number-of-columns">number of columns</a> in the element, the string |
| 1154 | + is implicitly padded with “.” (period) symbols. Likewise, if there are |
| 1155 | + fewer strings than the <a href="#number-of-rows">number of rows</a> in the |
| 1156 | + element, additional strings consisting of “.” (period) symbols are |
| 1157 | + implicitly added. |
| 1158 | + |
1150 | 1159 | <p>Each slot (letter or “*”) acts as a block element for its contents. |
1151 | 1160 |
|
1152 | 1161 | <p>If the value is ‘<code class=css>none</code>’, then no explicit |
@@ -1178,6 +1187,14 @@ <h3 id=grid-template><span class=secno>2.1. </span>Declaring a template: |
1178 | 1187 | </pre> |
1179 | 1188 | </div> |
1180 | 1189 |
|
| 1190 | + <p class=note>Authors should be aware that naming slots with Hebrew or |
| 1191 | + Arabic letters may cause some text editors to display the CSS rule with |
| 1192 | + the first letter of the string on the right. However, the first letter in |
| 1193 | + each string corresponds to the first value in ‘<a |
| 1194 | + href="#grid-columns"><code class=property>grid-columns</code></a>’ and |
| 1195 | + thus represents the leftmost column in the rendering of the document. |
| 1196 | + <!--=================================================================--> |
| 1197 | + |
1181 | 1198 | <h3 id=grid-column-sizes><span class=secno>2.2. </span>Specifying the |
1182 | 1199 | widths of columns: ‘<a href="#grid-columns"><code |
1183 | 1200 | class=property>grid-columns</code></a>’</h3> |
@@ -1256,8 +1273,8 @@ <h3 id=grid-column-sizes><span class=secno>2.2. </span>Specifying the |
1256 | 1273 | accepts certain values. |
1257 | 1274 |
|
1258 | 1275 | <p>Each <a href="#ltcol-widthgt"><var><col-width></var></a> sets the |
1259 | | - width of a column, the first value for the first column, the second for |
1260 | | - the second columns, etc. |
| 1276 | + width of a column, the first value for the leftmost column, the second for |
| 1277 | + the second column, etc. |
1261 | 1278 |
|
1262 | 1279 | <p>If there are fewer <a |
1263 | 1280 | href="#ltcol-widthgt"><var><col-width></var></a> values than the <a |
@@ -1395,6 +1412,10 @@ <h3 id=grid-row-sizes><span class=secno>2.3. </span>Specifying the height |
1395 | 1412 | <p class=note>Note that the syntax is the same syntax as for ‘<a |
1396 | 1413 | href="#grid-columns"><code class=property>grid-columns</code></a>’ |
1397 | 1414 |
|
| 1415 | + <p>Each <a href="#ltrow-heightgt"><var><row-height></var></a> sets |
| 1416 | + the height of a row, the first value for the topmost row, the second for |
| 1417 | + the second row, etc. |
| 1418 | + |
1398 | 1419 | <p>If there are fewer <a |
1399 | 1420 | href="#ltrow-heightgt"><var><row-height></var></a> values than the |
1400 | 1421 | <a href="#number-of-rows">number of rows</a> in the element, or if the |
|
0 commit comments