content-visibility-034-ref.html (694B)
1 <!doctype HTML> 2 <html> 3 <meta charset="utf8"> 4 <title>Content Visibility: hidden element shifted down (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 border: 1px solid blue; 13 } 14 #spacer { 15 width: 100px; 16 height: 100px; 17 background: orange; 18 } 19 #checker { 20 width: 100px; 21 height: 50px; 22 background: blue; 23 } 24 </style> 25 26 <p>There should be a square blank box (with a blue border) between an orange square and a blue rectangle. 27 <div id="spacer"></div> 28 <div id="container"></div> 29 <div id="checker"></div> 30 </html>