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
Copy file name to clipboardExpand all lines: css-display-3/Overview.bs
+7-2
Original file line number
Diff line number
Diff line change
@@ -69,16 +69,21 @@ Introduction</h2>
69
69
Then, for each [=CSS/element=],
70
70
CSS generates zero or more <a>boxes</a>
71
71
as specified by that element's 'display' property.
72
-
Typically, an element generates a single <a>box</a>.
72
+
Typically, an element generates a single <a>principal box</a>,
73
+
which represents itself and contains its contents in the <a>box tree</a>.
73
74
However, some 'display' values
74
75
(e.g. ''display: list-item'')
75
76
generate more than one box
76
-
(e.g. a <a href="https://www.w3.org/TR/CSS2/visuren.html#principal-box">principal block box</a> and a <a href="https://www.w3.org/TR/CSS2/generate.html#lists">marker box</a>).
77
+
(e.g. a <a href="https://www.w3.org/TR/CSS2/visuren.html#principal-box">principal block box</a> and a child <a href="https://www.w3.org/TR/CSS2/generate.html#lists">marker box</a>).
77
78
And some values
78
79
(such as ''display/none'' or ''display/contents'')
79
80
cause the [=CSS/element=] and/or its descendants to not generate any <a>boxes</a> at all.
80
81
<a>Boxes</a> are often referred to by their 'display' type--
81
82
e.g. a <a>box</a> generated by an element with ''display: block'' is called a “block box” or just a “block”.
83
+
The <dfn export for=CSS>parent box</dfn> of an element’s <a>principal box</a>
84
+
is (except in the case of ''run-in'')
85
+
the <a>principal box</a> of its nearest ancestor element
86
+
that generates a <a>box</a>.
82
87
83
88
A <a>box</a> is assigned the same styles as its generating [=CSS/element=], unless otherwise indicated.
84
89
In general, <a>inherited properties</a> are assigned to the <a>principal box</a>,
0 commit comments