content-visibility-099-ref.html (783B)
1 <!doctype HTML> 2 <html class="reftest-wait"> 3 <meta charset="utf8"> 4 <title>Content Visibility: auto, make unskipped, then skipped while also toggling visibility (Reference)</title> 5 <link rel="author" title="Rob Buis" href="mailto:rbuis@igalia.com"> 6 <link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility"> 7 <script src="/common/reftest-wait.js"></script> 8 9 <style> 10 .spacer { 11 height: 10000px; 12 } 13 #child { 14 width: 100px; 15 height: 0px; 16 background: green; 17 position: relative 18 } 19 #target { 20 width: 10px; 21 height: 10px; 22 } 23 24 </style> 25 26 <div> 27 <div id=child></div> 28 </div> 29 <div class=spacer></div> 30 <div id=target></div> 31 32 <script> 33 document.getElementById("target").scrollIntoView(true /* alignToTop */); 34 requestAnimationFrame(takeScreenshot); 35 </script> 36 37 </html>