You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Abstract: This module describes how the CSS formatting box tree is generated from the document element tree and defines the 'display' and 'box-suppress' properties that control it.
@@ -21,7 +22,7 @@ Introduction</h2>
21
22
<p><em>This section is normative.</em>
22
23
23
24
CSS takes a source document, organized as a tree of <dfn lt="element|element tree">elements</dfn>,
24
-
and renders it onto a <a href="http://www.w3.org/TR/CSS21/intro.html#canvas">canvas</a> (such as your screen, a piece of paper, or an audio stream).
25
+
and renders it onto a <a href="http://www.w3.org/TR/CSS2/intro.html#canvas">canvas</a> (such as your screen, a piece of paper, or an audio stream).
25
26
To do this, it generates an intermediary structure,
26
27
the <dfn>box tree</dfn>,
27
28
which represents the formatting structure of the rendered document.
@@ -40,7 +41,7 @@ Introduction</h2>
40
41
However, some 'display' values
41
42
(e.g. ''display: list-item'')
42
43
generate more than one box
43
-
(e.g. a <a href="http://www.w3.org/TR/CSS21/visuren.html#principal-box">principal block box</a> and a <a href="http://www.w3.org/TR/CSS21/generate.html#lists">marker box</a>).
44
+
(e.g. a <a href="http://www.w3.org/TR/CSS2/visuren.html#principal-box">principal block box</a> and a <a href="http://www.w3.org/TR/CSS2/generate.html#lists">marker box</a>).
44
45
And some values
45
46
(such as ''display:none'', ''display: contents'', and ''box-suppress: discard'')
46
47
cause the <a>element</a> and/or its descendants to not generate any <a>boxes</a> at all.
@@ -52,11 +53,11 @@ Introduction</h2>
52
53
<a>Anonymous boxes</a> are generated in certain circumstances
53
54
to fix up the <a>box tree</a> when it requires a particular nested structure
54
55
that is not provided by the boxes generated from the <a>element tree</a>.
55
-
For example, a <a href="http://www.w3.org/TR/CSS21/tables.html#table-display">table cell box</a>
56
-
requires a particular type of parent box (the <a href="http://www.w3.org/TR/CSS21/tables.html#table-display">table row box</a>),
57
-
and will generate an <a>anonymous</a><a href="http://www.w3.org/TR/CSS21/tables.html#table-display">table row box</a> around itself
58
-
if its parent is not a <a href="http://www.w3.org/TR/CSS21/tables.html#table-display">table row box</a>.
59
-
(See [[CSS21]] § <a href="http://www.w3.org/TR/CSS21/tables.html#anonymous-boxes">17.2.1</a>.)
56
+
For example, a <a href="http://www.w3.org/TR/CSS2/tables.html#table-display">table cell box</a>
57
+
requires a particular type of parent box (the <a href="http://www.w3.org/TR/CSS2/tables.html#table-display">table row box</a>),
58
+
and will generate an <a>anonymous</a><a href="http://www.w3.org/TR/CSS2/tables.html#table-display">table row box</a> around itself
59
+
if its parent is not a <a href="http://www.w3.org/TR/CSS2/tables.html#table-display">table row box</a>.
60
+
(See [[CSS2]] § <a href="http://www.w3.org/TR/CSS2/tables.html#anonymous-boxes">17.2.1</a>.)
60
61
Unlike element-generated boxes, whose styles inherit strictly through the element tree,
61
62
anonymous boxes (which only exist in the <a>box tree</a>)
62
63
<a href="http://www.w3.org/TR/css-cascade/#inheriting">inherit</a> through their <a>box tree</a> parentage.
@@ -83,16 +84,16 @@ Introduction</h2>
83
84
<h3 id="placement">
84
85
Module interactions</h3>
85
86
86
-
This module replaces and extends the definition of the 'display' property defined in [[!CSS21]] section 9.2.4.
87
+
This module replaces and extends the definition of the 'display' property defined in [[!CSS2]] section 9.2.4.
87
88
88
89
None of the properties in this module apply to the <code>::first-line</code> or <code>::first-letter</code> pseudo-elements.
0 commit comments