[css-display] Specify how styles reflect back from boxes to their gen… · w3c/csswg-drafts@b2d484c (original) (raw)
`@@ -15,7 +15,7 @@ Previous Version: https://www.w3.org/TR/2014/WD-css-display-3-20140911/
`
15
15
`Editor: Tab Atkins Jr., Google, http://xanthir.com/contact/, w3cid 42199
`
16
16
`Editor: Elika J. Etemad / fantasai, Invited Expert, http://fantasai.inkedblade.net/contact, w3cid 35400
`
17
17
`Abstract: This module describes how the CSS formatting box tree is generated from the document element tree and defines the 'display' property that controls it.
`
18
``
`-
Ignored Terms: display-model, display-role, table row group box, absolutely positioned, table formatting context
`
``
18
`+
Ignored Terms: display-model, display-role, table row group box, absolutely positioned, table formatting context, table grid box
`
19
19
`At Risk: Application of ''::first-letter'' in the presence of run-ins
`
20
20
`At Risk: ''display: run-in''
`
21
21
`At Risk: All multi-keyword values of 'display'
`
`@@ -70,10 +70,26 @@ Introduction
`
70
70
` And some values
`
71
71
` (such as ''display/none'' or ''display/contents'')
`
72
72
` cause the [=CSS/element=] and/or its descendants to not generate any boxes at all.
`
73
``
`-
Boxes are assigned the same styles as their generating [=CSS/element=], unless otherwise indicated.
`
74
``
`-
They're often referred to by their 'display' type--
`
``
73
`+
Boxes are often referred to by their 'display' type--
`
75
74
` e.g. a box generated by an element with ''display: block'' is called a “block box” or just a “block”.
`
76
75
``
``
76
`+
A box is assigned the same styles as its generating [=CSS/element=], unless otherwise indicated.
`
``
77
`+
In general, inherited properties are assigned to the principal box,
`
``
78
`+
and then inherit through the box tree
`
``
79
`+
to any other boxes generated by the same element.
`
``
80
`+
Non-inherited properties default to applying to the principal box,
`
``
81
`+
but when the element generates multiple boxes,
`
``
82
`+
are sometimes defined to apply to a different box:
`
``
83
`+
for example, the 'border' properties applied to a table element
`
``
84
`+
are applied to its table grid box,
`
``
85
`+
not to its principal table wrapper box.
`
``
86
`+
If the value computation process alters the styles of those boxes,
`
``
87
`+
and the element's style is requested
`
``
88
`+
(such as through {{getComputedStyle()}}),
`
``
89
`+
the element reflects,
`
``
90
`+
for each property,
`
``
91
`+
the value from the box to which that property was applied.
`
``
92
+
77
93
` Similarly, each contiguous sequence of sibling text nodes generates a text run,
`
78
94
` which is assigned the same styles as the generating text nodes.
`
79
95
``