Skip to content

Commit f13b842

Browse files
committed
[css-display-3] display: contents computes to display: none on replaced elements. #2755 per WG resolution
1 parent c2e0acf commit f13b842

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

css-display-3/Overview.bs

+13-5
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ Box Generation: the ''display/none'' and ''display/contents'' keywords</h3>
572572
and property <a>inheritance</a>,
573573
are not affected.
574574

575-
This value behaves as ''display: none'' on replaced elements
575+
This value computes to ''display: none'' on replaced elements
576576
and other elements whose rendering is not entirely controlled by CSS;
577577
see [[#unbox]] for details.
578578

@@ -1194,7 +1194,7 @@ HTML Elements {#unbox-html}
11941194
: <{textarea}>
11951195
: <{select}>
11961196
::
1197-
''display: contents'' behaves as ''display: none''.
1197+
''display: contents'' computes to ''display: none''.
11981198

11991199
: <{legend}>
12001200
::
@@ -1221,7 +1221,7 @@ SVG Elements {#unbox-svg}
12211221
(this includes all <{svg}> whose parent is an HTML element,
12221222
as well as document root elements)
12231223
::
1224-
''display: contents'' behaves as ''display: none''.
1224+
''display: contents'' computes to ''display: none''.
12251225

12261226
: All other SVG [=container elements=] that are also [=renderable elements=]
12271227
: SVG [=text content child elements=]
@@ -1233,7 +1233,7 @@ SVG Elements {#unbox-svg}
12331233

12341234
: any other SVG elements
12351235
::
1236-
''display: contents'' behaves as ''display: none''.
1236+
''display: contents'' computes to ''display: none''.
12371237

12381238
<div class="note">
12391239
The intention here is that
@@ -1296,7 +1296,7 @@ MathML Elements {#unbox-mathml}
12961296
-------------------------------
12971297

12981298
For all MathML elements,
1299-
''display: contents'' behaves as ''display: none''.
1299+
''display: contents'' computes to ''display: none''.
13001300

13011301
<h2 class=no-num id="box-guidelines">
13021302
Appendix C: Box Construction Guidelines for Spec Authors</h2>
@@ -1346,6 +1346,14 @@ Acknowledgments</h2>
13461346
<h2 class=no-num id="changes">
13471347
Changes</h2>
13481348

1349+
Changes since the <a href="https://www.w3.org/TR/2018/WD-css-display-3-20180420/">20 April 2018 Working Draft</a> include:
1350+
1351+
<ul>
1352+
<li>
1353+
Elements with ''display: contents'' that behave as ''display: none'' now <em>compute to</em> ''display: none''.
1354+
(<a href="https://github.com/w3c/csswg-drafts/issues/2755">Issue 2755</a>)
1355+
</ul>
1356+
13491357
Changes since the <a href="https://www.w3.org/TR/2017/WD-css-display-3-20170720/">20 July 2017 Working Draft</a> include:
13501358

13511359
* Tightened up rules for the <a>blockification</a> of ''display/inline-block'' / ''inline flow-root''

0 commit comments

Comments
 (0)