@@ -128,9 +128,9 @@ <h2><a name="q1">17.1 Introduction to tables</a></h2>
128128
129129< pre >
130130table { border-collapse: collapse }
131- tr#row1 { border-top : 3px solid blue }
132- tr#row2 { border-top : 1px solid black }
133- tr#row3 { border-top : 1px solid black }
131+ tr#row1 { border: 3px solid blue }
132+ tr#row2 { border: 1px solid black }
133+ tr#row3 { border: 1px solid black }
134134</ pre >
135135
136136< p > Note, however, that the borders around the rows overlap where the
@@ -264,11 +264,18 @@ <h2><a name="q2">17.2 The CSS table model</a></h2>
264264 class ="value-def "
265265 name ="value-def-table-caption "> table-caption</ a > </ span > </ strong > (In
266266 HTML: CAPTION) < dd > Specifies a caption for the table. Use of
267- multiple elements with 'display: caption' is undefined; authors
268- should not put more than one element with 'display: caption' inside
267+ multiple elements with 'display: table- caption' is undefined; authors
268+ should not put more than one element with 'display: table- caption' inside
269269 a table or inline-table element.
270270</ dl >
271271
272+ < p > Replaced elements with these < a href ="visuren.html#propdef-display " class ="noxref "> < span
273+ class ="propinst-display "> 'display'</ span > </ a > values are treated as their
274+ given display types during layout. For example, an image that is set
275+ to 'display: table-cell' will fill the available cell space, and its
276+ dimensions might contribute towards the table sizing algorithms, as
277+ with an ordinary cell.
278+
272279< p > Elements with < a href ="visuren.html#propdef-display " class ="noxref "> < span class ="propinst-display "> 'display'</ span > </ a > set
273280to 'table-column' or 'table-column-group' are not rendered (exactly as
274281if they had 'display: none'), but they are useful, because they may
@@ -310,59 +317,59 @@ <h3>17.2.1 <a name="anonymous-boxes">Anonymous table objects</a></h3>
310317boxes in visual table layout) according to the following rules:
311318
312319< ol >
313- < li > If the parent P of a 'table-cell' element T is not a
314- 'table-row', an object corresponding to a 'table-row' will be
315- generated between P and T. This object will span all consecutive
320+ < li > If the parent P of a 'table-cell' box T is not a
321+ 'table-row', a box corresponding to a 'table-row' will be
322+ generated between P and T. This box will span all consecutive
316323 'table-cell' siblings (in the document tree) of T.
317324
318- < li > If the parent P of a 'table-row' element T is not a 'table',
325+ < li > If the parent P of a 'table-row' box T is not a 'table',
319326 'inline-table', 'table-header-group', 'table-footer-group' or
320- 'table-row-group' element, an object corresponding to a 'table'
321- element will be generated between P and T. This object will span all
327+ 'table-row-group' box, a box corresponding to a 'table'
328+ element will be generated between P and T. This box will span all
322329 consecutive siblings (in the document tree) of T that require a
323330 'table' parent: 'table-row', 'table-row-group',
324331 'table-header-group', 'table-footer-group', 'table-column',
325332 'table-column-group', and 'table-caption'. T and T's siblings may
326- also be anonymous 'table-row' objects generated by rule 1.
333+ also be anonymous 'table-row' boxes generated by rule 1.
327334
328- < li > If the parent P of a 'table-column' element T is not a 'table',
329- 'inline-table', or 'table-column-group' element, an object
335+ < li > If the parent P of a 'table-column' box T is not a 'table',
336+ 'inline-table', or 'table-column-group' box, a box
330337 corresponding to a 'table' element will be generated between P and
331- T. This object will span all consecutive siblings (in the document
338+ T. This box will span all consecutive siblings (in the document
332339 tree) of T that require a 'table' parent: 'table-row',
333340 'table-row-group', 'table-header-group', 'table-footer-group',
334341 'table-column', 'table-column-group', and 'table-caption', including
335- any anonymous 'table-row' objects generated by rule 1.
342+ any anonymous 'table-row' boxes generated by rule 1.
336343
337344 < li > If the parent P of a 'table-row-group' (or 'table-header-group',
338345 'table-footer-group', or 'table-column-group' or 'table-caption')
339- element T is not a 'table' or 'inline-table', an object
346+ box T is not a 'table' or 'inline-table', a box
340347 corresponding to a 'table' element will be generated between P and
341- T. This object will span all consecutive siblings (in the document
348+ T. This box will span all consecutive siblings (in the document
342349 tree) of T that require a 'table' parent: 'table-row',
343350 'table-row-group', 'table-header-group', 'table-footer-group',
344351 'table-column', 'table-column-group', and 'table-caption', including
345- any anonymous 'table-row' objects generated by rule 1.
352+ any anonymous 'table-row' boxes generated by rule 1.
346353
347- < li > If a child T of a 'table' element (or 'inline-table') P is not a
354+ < li > If a child T of a 'table' box (or 'inline-table') P is not a
348355 'table-row-group', 'table-header-group', 'table-footer-group',
349356 'table-caption', 'table-column', 'table-column-group' or 'table-row'
350- element, an object corresponding to a 'table-row' element will be
351- generated between P and T. This object spans all consecutive
357+ box, a box corresponding to a 'table-row' element will be
358+ generated between P and T. This box spans all consecutive
352359 siblings of T that are not 'table-row-group', 'table-header-group',
353360 'table-footer-group', 'table-caption', 'table-column',
354- 'table-column-group' or 'table-row' elements .
361+ 'table-column-group' or 'table-row' boxes .
355362
356- < li > If a child T of a 'table-row-group' element (or
363+ < li > If a child T of a 'table-row-group' box (or
357364 'table-header-group' or 'table-footer-group') P is not a 'table-row'
358- element, an object corresponding to a 'table-row' element will be
359- generated between P and T. This object spans all consecutive
360- siblings of T that are not 'table-row' elements .
361-
362- < li > If a child T of a 'table-row' element P is not a 'table-cell'
363- element, an object corresponding to a 'table-cell' element will be
364- generated between P and T. This object spans all consecutive
365- siblings of T that are not 'table-cell' elements .
365+ box, a box corresponding to a 'table-row' element will be
366+ generated between P and T. This box spans all consecutive
367+ siblings of T that are not 'table-row' boxes .
368+
369+ < li > If a child T of a 'table-row' box P is not a 'table-cell'
370+ box, a box corresponding to a 'table-cell' element will be
371+ generated between P and T. This box spans all consecutive
372+ siblings of T that are not 'table-cell' boxes .
366373</ ol >
367374
368375< div class ="example "> < P style ="display:none "> Example(s):</ P >
@@ -881,6 +888,10 @@ <h4> <a name="auto-table-layout">Automatic table layout</a></h4>
881888to have access to all the content in the table before determining the
882889final layout and may demand more than one pass.
883890
891+ < p > Input to this algorithm must only include the width of the
892+ containing block and the content of, and any CSS properties set on,
893+ the table and any of its descendants.
894+
884895< p > Column widths are determined as follows:
885896
886897< ol >
@@ -979,7 +990,7 @@ <h3>17.5.3 <a name="height-layout">Table height algorithms</a></h3>
979990class ="propinst-height "> 'height'</ span > </ a > refer to when specified for
980991table cells.
981992
982- < p > CSS 2.1 does not specify how cells that span more than row
993+ < p > CSS 2.1 does not specify how cells that span more than one row
983994affect row height calculations except that the sum of the row heights
984995involved must be great enough to encompass the cell spanning the rows.
985996
0 commit comments