Skip to content

Commit d810140

Browse files
committed
[css2] Reworded section on anonymous table boxes
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401061
1 parent 27508e7 commit d810140

1 file changed

Lines changed: 38 additions & 35 deletions

File tree

css2/tables.src

Lines changed: 38 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: tables.src,v 2.14 1998-02-20 22:31:05 bbos Exp $ -->
3+
<!-- $Id: tables.src,v 2.15 1998-02-21 04:28:28 ijacobs Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
66
<title>Tables</title>
@@ -263,42 +263,45 @@ class="propinst-display">'display'</span> property values for HTML
263263
documents, since authors should not alter an element's expected
264264
behavior.
265265

266-
<h3>Anonymous table elements</h3>
266+
<h3>Anonymous table boxes</h3>
267267

268-
<P>For document languages other than HTML 4.0, authors may designate
269-
elements to be some, but not all, of the table elements in the CSS2
270-
table model. In such a case, the "missing" elements are inserted as <a
271-
href="visuren.html#anonymous">anonymous elements</a> according
272-
to the following rules:</p>
268+
<P>For document languages other than HTML 4.0, authors may end up
269+
some, but not all, document language elements with those in the CSS2
270+
table model. In these cases, the "missing" elements must be assumed in
271+
order for the table model to work. The missing elements generate <a
272+
href="visuren.html#anonymous">anonymous</a> boxes according to the
273+
following rules:</p>
273274

274275
<ol>
275-
<li>Any table element will automatically generate a whole table tree
276-
around itself, consisting of at least three nested elements: a
277-
'table'/'inline-table', a 'table-row', and a 'table-cell'.
278-
279-
<li>If the parent of a 'table-cell' is not a 'table-row',
280-
an anonymous 'table-row' element will be assumed as its parent, and
281-
this anonymous element will span all consecutive 'table-cell'
282-
siblings.
283-
284-
<li>If the parent of a 'table-row' is neither a 'table'/'inline-table'
285-
nor a row group element, an anonymous 'table' will be assumed as its
286-
parent, spanning all consecutive siblings that also need an anonymous
287-
'table' parent.
288-
289-
<li>If the parent of a row group element is not a
290-
'table'/'inline-table', an anonymous 'table' will be assumed as its
291-
parent, spanning all consecutive siblings that also need an anonymous
292-
'table' parent.
293-
294-
<li>Anonymous 'table-cell' elements are inserted as children of
295-
'table-rows', to contain consecutive children that are not
276+
277+
<li>Any table element will automatically generate necessary table
278+
boxes around itself, consisting of at least three nested boxes
279+
corresponding to a 'table'/'inline-table' element, a 'table-row'
280+
element, and a 'table-cell' element.
281+
282+
<li>If the parent of a 'table-cell' is not a 'table-row', a
283+
'table-row' element will be assumed as its parent, and this
284+
element will generate an anonymous box that spans
285+
all consecutive 'table-cell' siblings.
286+
287+
<li>If the parent of a 'table-row' is not a 'table', 'inline-table',
288+
or 'row-group' element, the 'table-row' will be assumed to have a
289+
parent 'table' element that generates a box spanning all consecutive
290+
siblings also requiring a 'table' parent.
291+
292+
<li>If the parent of a 'table-row-group' is not a 'table'
293+
or 'inline-table', the 'table-row-group' will be assumed to have a
294+
parent 'table' element that generates a box spanning all consecutive
295+
siblings also requiring a 'table' parent.
296+
297+
<li>'table-cell' elements are inserted as children of a
298+
'table-row' element to contain consecutive children that are not
296299
'table-cell' elements.
297300
</ol>
298301

299302
<div class="example">
300-
<p>In this XML example, an anonymous 'table' is inserted to
301-
contain the HBOX element:</p>
303+
<p>In this XML example, a 'table' element is assumed
304+
to contain the HBOX element:</p>
302305

303306
<pre class="xml-example">
304307
&lt;HBOX&gt;
@@ -308,7 +311,7 @@ contain the HBOX element:</p>
308311
&lt;/HBOX&gt;
309312
</pre>
310313

311-
<p>The style sheet is:</p>
314+
<p>because the associated style sheet is:</p>
312315

313316
<pre class="example">
314317
HBOX {display: table-row}
@@ -317,7 +320,7 @@ VBOX {display: table-cell}
317320
</div><!-- end of example -->
318321

319322
<div class="example">
320-
<p>In this example, three anonymous 'table-cell' elements are inserted
323+
<p>In this example, three 'table-cell' elements are assumed
321324
to contain the text in the ROWs. Note that the text is further
322325
encapsulated in anonymous inline boxes, as explained in <a
323326
href="visuren.html#anonymous">visual rendering model</a>:</p>
@@ -413,7 +416,7 @@ href="visuren.html#block-level">block-level</a> or replaced <a
413416
href="visuren.html#inline">inline</a> element.
414417

415418
<P>In both cases, the table element generates an <a
416-
href="visuren.html#anonymous">anonymous box</a> that contains the
419+
href="visuren.html#anonymous">anonymous</a> box that contains the
417420
table box itself and the caption's box (if present). The table and
418421
caption boxes retain their own content, padding, margin, and border
419422
areas, and the dimensions of the rectangular anonymous box are the
@@ -585,7 +588,7 @@ box; it is made shorter until it fits.
585588
</ol>
586589

587590
<div class="note">
588-
<p><em><strong>Note.</strong>The above is an extension of the HTML 4.0
591+
<p><em><strong>Note.</strong> The above is an extension of the HTML 4.0
589592
algorithm. The HTML 4.0 specification only defines the position of
590593
cells if they can be placed so that they do not leave gaps. If cells
591594
would leave gaps when following the algorithm above (or, equivalently,
@@ -977,7 +980,7 @@ in the following HTML table:</p>
977980

978981
<P>to align along the decimal point. For fun,
979982
we have used the <span class="index-inst" title=":before">:before</span>
980-
pseudo-class to insert a dollar sign before each figure:</P>
983+
pseudo-element to insert a dollar sign before each figure:</P>
981984

982985
<PRE>
983986
Long distance calls

0 commit comments

Comments
 (0)