@@ -82,54 +82,33 @@ Introduction</h2>
8282 and the column widths will vary depending on the available width.
8383 </div>
8484
85- The shorthand 'columns' property can be used to set either,
86- or both, properties in one declaration.
85+ If a 'column-height' is set,
86+ and there is more content that will fit in one row of columns at the specified height,
87+ multiple rows of columns are created in the block direction.
8788
8889 <div class=example>
89- In these examples, the number of columns, the width of columns, and
90- both the number and width are set, respectively:
91-
92- <pre highlight="css">
93- body { columns: 2 }
94- body { columns: 12em }
95- body { columns: 2 12em }
96- </pre>
97-
98- </div>
99-
100- Another group of properties introduced in this module describe
101- gaps and rules between columns.
90+ <pre highlight="css"> body { column-height: 10em; column-count: 3 }</pre>
10291
103- <div class=example>
104- <pre highlight="css">
105- body {
106- column-gap: 1em;
107- column-rule: thin solid black;
108- }
109- </pre>
110-
111- The first declaration in the example above sets the gap
112- between two adjacent columns to be 1em.
113- Column gaps are similar to padding areas.
114- In the middle of the gap there will be a rule
115- which is described by the 'column-rule' property.
92+ In this case, the number of columns is fixed
93+ and the column widths will vary depending on the available width.
94+ If there is more content than will fit into three columns of height 10em,
95+ a new row of columns is created in the block direction.
11696 </div>
11797
118- The values of the 'column-rule' property are similar to those of the CSS 'border' properties.
119- Like 'border' , 'column-rule' is a shorthand property.
98+ The shorthand 'columns' property can be used to set all three properties in one declaration.
12099
121100 <div class=example>
122- In this example, the shorthand 'column-rule' declaration from the
123- above example has been expanded:
101+ In these examples, the number of columns, the width of columns, and
102+ both the number and width of columns,
103+ and the width and height of columns are set, respectively:
124104
125105 <pre highlight="css">
126- body {
127- column-gap: 1em;
128- column-rule-width: thin;
129- column-rule-style: solid;
130- column-rule-color: black;
131- }
106+ body { columns: 2 }
107+ body { columns: 12em }
108+ body { columns: 2 12em }
109+ body { columns: 12em / 14em }
132110 </pre>
111+
133112 </div>
134113
135114 The 'column-fill' and 'column-span' properties
@@ -150,9 +129,6 @@ Introduction</h2>
150129 multicol-fill-balance-029.html
151130 </wpt>
152131
153- This specification introduces ten new properties,
154- all of which are used in the examples above.
155-
156132 If all column properties have their initial value,
157133 the layout of an element will be identical
158134 to a multi-column layout with only one column.
@@ -1205,19 +1181,6 @@ without caring about the <em>contents</em>.
12051181 multicol-rule-nested-balancing-004.html
12061182 </wpt>
12071183
1208- A [=column rule=] is drawn in the middle of the [=column gap=]
1209- with the endpoints at opposing content edges of the [=multicol container=] .
1210- Column rules do not take up space.
1211- That is, the presence or thickness of a [=column rule=] will not alter the placement of anything else.
1212- If a [=column rule=] is wider than its gap,
1213- the adjacent column boxes will overlap the rule,
1214- and the rule may possibly extend outside the box of the [=multicol container=] .
1215- Column rules are painted just above the border of the [=multicol container=] .
1216- For scrollable multicol containers,
1217- note that while the border and background of the [=multicol container=] obviously aren't scrolled,
1218- the rules need to scroll along with the columns.
1219- Column rules are only drawn between two columns that both have content.
1220-
12211184 <wpt title="Basic column rule tests">
12221185 multicol-rule-003.xht
12231186 multicol-rule-004.xht
@@ -1290,28 +1253,15 @@ without caring about the <em>contents</em>.
12901253 If there is a rule between rows,
12911254 it will appear in the middle of the gap.
12921255
1293- <h3 id='crc'>The Color of Column Rules: the
1294- 'column-rule-color' property </h3>
1256+ <h3 id='crc'>The Color, Width, and Style of Column Rules: the
1257+ gap decoration properties </h3>
12951258
1296- <pre class=propdef>
1297- Name : column-rule-color
1298- Value : <<color>>
1299- Initial : currentcolor
1300- Applies to : multicol containers
1301- Inherited : no
1302- Percentages : N/A
1303- Computed value : computed color
1304- Animation type : by computed value type
1305- </pre>
1306-
1307- <dl>
1308- <dt> <dfn value for=column-rule-color><<color>></dfn> </dt>
1309- <dd>
1310- Specifies the color of the [=column rule=] .
1311- </dd>
1312- </dl>
1259+ The gap decoration properties of 'column-rule' and 'row-rule' ,
1260+ along with their longhands 'column-rule-color' , 'row-rule-color' ,
1261+ 'column-rule-style' , 'row-rule-style' , 'column-rule-width' , 'row-rule-width'
1262+ are defined in [[!CSS-GAPS]] .
13131263
1314- <wpt>
1264+ <wpt title="Tests for column-rule-color in multicol" >
13151265 multicol-rule-color-001.xht
13161266 multicol-rule-color-inherit-001.xht
13171267 multicol-rule-color-inherit-002.xht
@@ -1321,71 +1271,13 @@ without caring about the <em>contents</em>.
13211271 animation/column-rule-color-interpolation.html
13221272 </wpt>
13231273
1324- <h3 id='crs'>The Style Of Column Rules: the 'column-rule-style' property</h3>
1325-
1326- <pre class=propdef>
1327- Name : column-rule-style
1328- Value : <<line-style>>
1329- Initial : none
1330- Applies to : multicol containers
1331- Inherited : no
1332- Percentages : N/A
1333- Computed value : specified keyword
1334- Animation type : discrete
1335- </pre>
1336-
1337- The 'column-rule-style' property sets the style of the rule between columns of an element.
1338- The <<line-style>> values are interpreted as in the <a href="https://www.w3.org/TR/CSS2/tables.html#collapsing-borders">collapsing border model</a> .
1339-
1340- <wpt>
1274+ <wpt title="Tests for column-rule-style in multicol.">
13411275 parsing/column-rule-style-computed.html
13421276 parsing/column-rule-style-valid.html
13431277 parsing/column-rule-style-invalid.html
13441278 </wpt>
13451279
1346- The ''border-style/none'' and ''hidden'' values force the used value of 'column-rule-width' to be ''0'' .
1347-
1348- <h3 id='crw'>The Width Of Column Rules: the 'column-rule-width' property</h3>
1349-
1350- <pre class=propdef>
1351- Name : column-rule-width
1352- Value : <<line-width>>
1353- Initial : medium
1354- Applies to : multicol containers
1355- Inherited : no
1356- Percentages : N/A
1357- Computed value : absolute length, [=snapped as a border width=]
1358- Animation type : by computed value type
1359- </pre>
1360-
1361- This property sets the width of the rule between columns.
1362- Negative values are not allowed.
1363-
1364- <wpt>
1365- multicol-rule-fraction-001.xht
1366- multicol-rule-fraction-003.xht
1367- multicol-rule-px-001.xht
1368- multicol-rule-percent-001.xht
1369- subpixel-column-rule-width.tentative.html
1370- parsing/column-rule-width-computed.html
1371- parsing/column-rule-width-invalid.html
1372- parsing/column-rule-width-valid.html
1373- animation/column-rule-width-interpolation.html
1374- </wpt>
1375-
1376- <h3 id="cr">Column Rule Shorthand: the 'column-rule' property</h3>
1377-
1378- <pre class="propdef shorthand">
1379- Name : column-rule
1380- Value : <<'column-rule-width'>> || <<'column-rule-style'>> || <<'column-rule-color'>>
1381- </pre>
1382-
1383- This property is a shorthand for setting
1384- 'column-rule-width' , 'column-rule-style' , and 'column-rule-color'
1385- at the same place in the style sheet.
1386- Omitted values are set to their initial values.
1387-
1388- <wpt>
1280+ <wpt title="Tests for column-rule-style in multicol.">
13891281
13901282 multicol-shorthand-001.xht
13911283 multicol-rule-shorthand-001.xht
@@ -1408,30 +1300,11 @@ without caring about the <em>contents</em>.
14081300 parsing/column-rule-shorthand.html
14091301 </wpt>
14101302
1411- <div class=example>
1412- In this example, the [=column rule=] and the [=column gap=] have the same width.
1413- Therefore, they will occupy exactly the same space.
1414-
1415- <pre highlight="css">
1416- body {
1417- column-gap: 35px;
1418- column-rule-width: 35px;
1419- column-rule-style: solid;
1420- column-rule-color: black;
1421- }
1422- </pre>
1423-
1424- <figure>
1425- <img src="images/rule-same-width-as-gap.svg" alt="The rule completely covers any gap." no-autosize>
1426- <figcaption> The column rule and column gap occupy the same space.</figcaption>
1427- </figure>
1428-
14291303 <wpt>
14301304 equal-gap-and-rule.html
14311305 multicol-rule-samelength-001.xht
14321306 fixed-size-child-with-overflow.html
14331307 </wpt>
1434- </div>
14351308
14361309<h2 id="column-breaks">
14371310Column Breaks</h2>
0 commit comments