Skip to content

Commit 10d721d

Browse files
committed
[css-display-3] Add note warning that 'display: contents' is fundamentally broken in browsers, breaks a11y access. w3c#3040
1 parent be796b2 commit 10d721d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

css-display-3/Overview.bs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,11 @@ Box Generation: the ''display/none'' and ''display/contents'' keywords</h3>
590590
such as selector-matching, event handling,
591591
and property <a>inheritance</a>,
592592
are not affected.
593+
<strong>As of writing, however,
594+
<a href="https://github.com/w3c/csswg-drafts/issues/3040">this is not implemented correctly in major browsers</a>,
595+
so using this feature on the Web must be done with care
596+
as it can prevent accessibility tools
597+
from accessing the element’s semantics.</strong>
593598

594599
This value computes to ''display: none'' on replaced elements
595600
and other elements whose rendering is not entirely controlled by CSS;

0 commit comments

Comments
 (0)