22.12.2013 Views

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

’table-footer-group’) element T is not a ’table’ or ’inline-table’, an object<br />

corresponding to a ’table’ element will be generated between P and T. This<br />

object will span all consecutive siblings (in the document tree) of T that<br />

require a ’table’ parent: ’table-row’, ’table-row-group’, ’table-header-group’,<br />

’table-footer-group’, ’table-column’, ’table-column-group’, and ’caption’.<br />

5. If a child T of a ’table-row’ element P is not a ’table-cell’ element, an object<br />

corresponding to a ’table-cell’ element will be generated between P and T.<br />

This object spans all consecutive siblings of T that are not ’table-cell’<br />

elements.<br />

Example(s):<br />

In this XML example, a ’table’ element is assumed to contain the HBOX<br />

element:<br />

<br />

George<br />

4287<br />

1998<br />

<br />

because the associated style sheet is:<br />

HBOX { display: table-row }<br />

VBOX { display: table-cell }<br />

Example(s):<br />

In this example, three ’table-cell’ elements are assumed to contain the text in<br />

the ROWs. Note that the text is further encapsulated in anonymous inline boxes,<br />

as explained in visual formatting model [p. 98] :<br />

<br />

This is the top row.<br />

This is the middle row.<br />

This is the bottom row.<br />

<br />

The style sheet is:<br />

STACK { display: inline-table }<br />

ROW { display: table-row }<br />

D { display: inline; font-weight: bolder }<br />

HTML user agents are not required to create anonymous objects according to<br />

the above rules.<br />

17.3 Column selectors<br />

Table cells may belong to two contexts: rows and columns. However, in the<br />

source document cells are descendants of rows, never of columns. Nevertheless,<br />

some aspects of cells can be influenced by setting properties on columns.<br />

The following properties apply to column and column-group elements:<br />

’border’<br />

The various border properties apply to columns only if ’border-collapse’ is<br />

set to ’collapse’ on the table element. In that case, borders set on columns<br />

and column groups are input to the conflict resolution algorithm [p. 264] that<br />

249

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!