3 <title>CSS display: State changes are handled correctly for display: contents children
</title>
4 <link rel=
"help" href=
"https://drafts.csswg.org/css-display-3/#valdef-display-contents">
5 <link rel=
"author" name=
"Emilio Cobos Álvarez" href=
"mailto:ecobos@igalia.com">
6 <link rel=
"match" href=
"display-contents-state-change-ref.html">
8 :focus-within .contents {
13 border:
10px solid red;
24 <div class=
"contents">This text should be green, there should be no red border at any time.
</div>
28 document
.querySelector('input').focus();