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
Editor: Elika J. Etemad / fantasai, Invited Expert, http://fantasai.inkedblade.net/contact
16
-
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.
16
+
Abstract: This module describes how the CSS formatting box tree is generated from the document element tree and defines the 'display' and 'display-or-not' properties that control it.
17
17
Ignored Terms: display-model, display-role, table row group box, absolutely positioned
18
18
</pre>
19
19
<pre class="link-defaults">
@@ -40,14 +40,14 @@ Introduction</h2>
40
40
(See [[!CSS3-CASCADE]].)
41
41
42
42
Then, for each element, it generates zero or more boxes
43
-
as specified by that element's 'display' and 'box-suppress' properties.
43
+
as specified by that element's 'display' and 'display-or-not' properties.
44
44
Typically, an element generates a single <a>box</a>.
45
45
However, some 'display' values
46
46
(e.g. ''display: list-item'')
47
47
generate more than one box
48
48
(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>).
49
49
And some values
50
-
(such as ''display:none'', ''display: contents'', and ''box-suppress: discard'')
50
+
(such as ''display:none'', ''display: contents'', and ''display-or-not: discard'')
51
51
cause the <a>element</a> and/or its descendants to not generate any <a>boxes</a> at all.
52
52
<a>Boxes</a> are assigned the same styles as their generating <a>element</a>, unless otherwise indicated.
53
53
They're often referred to by their 'display' type--
@@ -479,7 +479,7 @@ Box Generation: the ''none'' and ''contents'' keywords</h3>
479
479
<dd>
480
480
The element and its descendants generates no boxes.
481
481
482
-
Advisement: It is recommended that 'box-suppress' be used instead of ''display: none'',
482
+
Advisement: It is recommended that 'display-or-not' be used instead of ''display: none'',
483
483
so that the element's display type is automatically preserved
484
484
for when it's no longer suppressed.
485
485
</dl>
@@ -553,16 +553,16 @@ Automatic Box Type Transformations</h3>
553
553
554
554
555
555
<h2 id='box-suppress'>
556
-
Toggling Box Generation: the 'box-suppress' property</h2>
556
+
Toggling Box Generation: the 'display-or-not' property</h2>
557
557
558
558
<pre class="propdef">
559
-
Name: box-suppress
559
+
Name: display-or-not
560
560
Value: show | discard | hide
561
561
Initial: show
562
562
Applies to: all elements
563
563
Inherited: no
564
564
Percentages: n/a
565
-
Computed value: see prose
565
+
Computed value: as specified
566
566
Media: all
567
567
</pre>
568
568
@@ -571,16 +571,21 @@ Toggling Box Generation: the 'box-suppress' property</h2>
571
571
Making this reversible requires either setting up the CSS <a>cascade</a> carefully,
572
572
or remembering what the 'display' value was before it was set to ''none''.
573
573
To make this common use-case easier,
574
-
this module introduces the separate 'box-suppress' property to do the same thing,
574
+
this module introduces the separate 'display-or-not' property to do the same thing,
575
575
so that toggling whether or not an element appears in the formatting tree
576
576
can now be done without affecting its display type when it <em>is</em> displayed.
577
577
578
-
If the computed value of 'display' is ''none'',
579
-
the computed value of 'box-suppress' is ''discard''.
580
-
Otherwise, the computed value is the specified value.
578
+
Issue: This property (which needs a better name)
579
+
along with a <css>display-type</css> (or possibly <css>display-as</css>) longhand
580
+
which takes all values of 'display' other than ''none'',
581
+
are intended to be longhands of 'display'.
582
+
This has not yet been edited in, as this split feature is likely to be deferred to the next level
583
+
in order to have time to thoroughly work through and accommodate the
584
+
<a href="https://lists.w3.org/Archives/Public/www-style/2016Aug/0025.html">various use cases</a> for showing/hiding an element.
0 commit comments