inline-container-with-child-ref.html (574B)
1 <!doctype HTML> 2 <html> 3 <meta charset="utf8"> 4 <title>CSS Content Visibility: container with child and text (reference)</title> 5 <link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org"> 6 <link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility"> 7 8 <style> 9 #container { 10 width: 150px; 11 height: 150px; 12 background: lightblue; 13 display: inline; 14 } 15 #child { 16 width: 50px; 17 height: 50px; 18 background: green; 19 } 20 </style> 21 22 <p>Test passes if you can see PASS and a green box below. 23 <div id=container> 24 PASS 25 <div id=child></div> 26 </div>