Skip to content

Commit 17d6c67

Browse files
committed
[css-display-3] Incorporate Oriol's proposed sentence about box relationships. #3158
1 parent 41c7494 commit 17d6c67

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

css-display-3/Overview.bs

+13-7
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,6 @@ Introduction</h2>
8585
cause the [=CSS/element=] and/or its descendants to not generate any <a>boxes</a> at all.
8686
<a>Boxes</a> are often referred to by their 'display' type--
8787
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>.
9588

9689
A <a>box</a> is assigned the same styles as its generating [=CSS/element=], unless otherwise indicated.
9790
In general, <a>inherited properties</a> are assigned to the <a>principal box</a>,
@@ -115,6 +108,19 @@ Introduction</h2>
115108
which is assigned the same styles as the generating <a>text nodes</a>.
116109
If the sequence contains no text, however, it does not generate a <a>text run</a>.
117110

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+
118124
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.
119125
<a>Anonymous boxes</a> are generated in certain circumstances
120126
to fix up the <a>box tree</a> when it requires a particular nested structure

0 commit comments

Comments
 (0)