tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

content-visibility-046.html (1036B)


      1 <!doctype HTML>
      2 <html class="reftest-wait">
      3 <meta charset="utf8">
      4 <title>Content Visibility: viewport auto painting.</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 <link rel="match" href="container-with-child-ref.html">
      8 <meta name="assert" content="viewport intersection paints the content-visibility auto element">
      9 <script src="/common/reftest-wait.js"></script>
     10 
     11 <style>
     12 #container {
     13  width: 150px;
     14  height: 150px;
     15  background: lightblue;
     16 }
     17 #child {
     18  width: 50px;
     19  height: 50px;
     20  background: green;
     21 }
     22 .auto {
     23  content-visibility: auto;
     24 }
     25 </style>
     26 
     27 <div id=container class=auto>
     28  Test passes if you can see this text and a green box.
     29  <div id=child></div>
     30 </div>
     31 
     32 <script>
     33 
     34 function runTest() {
     35  document.getElementById("target").classList.add("auto");
     36  requestAnimationFrame(takeScreenshot);
     37 }
     38 
     39 window.onload = requestAnimationFrame(
     40  () => requestAnimationFrame(takeScreenshot));
     41 
     42 </script>
     43 </html>