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
+13-7
Original file line number
Diff line number
Diff line change
@@ -85,13 +85,6 @@ Introduction</h2>
85
85
cause the [=CSS/element=] and/or its descendants to not generate any <a>boxes</a> at all.
86
86
<a>Boxes</a> are often referred to by their 'display' type--
87
87
e.g. a <a>box</a> generated by an element with ''display: block'' is called a “block box” or just a “block”.
88
-
The <dfn export for=CSS>parent box</dfn> of an element’s <a>principal box</a>
89
-
is, in general,
90
-
the <a>principal box</a> of its nearest ancestor element
91
-
that generates a <a>box</a>;
92
-
there are exceptions for ''run-in'' boxes,
93
-
display types that generate multiple boxes (such as tables),
94
-
and intervening <a>anonymous boxes</a>.
95
88
96
89
A <a>box</a> is assigned the same styles as its generating [=CSS/element=], unless otherwise indicated.
97
90
In general, <a>inherited properties</a> are assigned to the <a>principal box</a>,
@@ -115,6 +108,19 @@ Introduction</h2>
115
108
which is assigned the same styles as the generating <a>text nodes</a>.
116
109
If the sequence contains no text, however, it does not generate a <a>text run</a>.
117
110
111
+
In constructing the box tree,
112
+
boxes generated by an element are descendants of
113
+
the principal box of any ancestor elements.
114
+
In general,
115
+
the direct <dfn export for=CSS>parent box</dfn>
116
+
of an element’s <a>principal box</a>
117
+
is the <a>principal box</a>
118
+
of its nearest ancestor element that generates a <a>box</a>;
119
+
however, there are some exceptions,
120
+
such as for ''run-in'' boxes,
121
+
display types that generate multiple container boxes (such as tables),
122
+
and intervening <a>anonymous boxes</a>.
123
+
118
124
An <dfn id="anonymous" oldids="css-anonymous" for=CSS lt="anonymous|anonymous box" export>anonymous box</dfn> is a box that is not associated with any element.
119
125
<a>Anonymous boxes</a> are generated in certain circumstances
120
126
to fix up the <a>box tree</a> when it requires a particular nested structure
0 commit comments