display-contents-inline-002.html (683B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Display: display:contents in inline layout should affect style of descendants</title> 4 <link rel="author" title="Martin Robinson" href="mailto:mrobinson@igalia.com"> 5 <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> 6 <link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-contents"> 7 <link rel="match" href="display-contents-pass-no-red-ref.html"> 8 <style> 9 #contents { 10 display: contents; 11 color: black; 12 } 13 .red { color: red; } 14 </style> 15 <p>You should see the word PASS and no red below.</p> 16 <span> 17 P<span class="red"><div id="contents">AS</div></span>S 18 </span>