tor-browser

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

hidden-until-found-001.html (1009B)


      1 <!doctype HTML>
      2 
      3 <html class="reftest-wait">
      4 <meta charset="utf8">
      5 <title>content-visibility changes after a delay</title>
      6 <link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
      7 <link rel="help" href="https://html.spec.whatwg.org/multipage/interaction.html#attr-hidden-until-found">
      8 <link rel="match" href="./resources/container-ref.html">
      9 <meta name="assert" content="scrollIntoView has no effect on hidden=until-found">
     10 <script src="/common/reftest-wait.js"></script>
     11 
     12 <style>
     13 #container {
     14  width: 150px;
     15  height: 150px;
     16  background: lightblue;
     17 }
     18 #child {
     19  width: 50px;
     20  height: 50px;
     21  background: lightgreen;
     22 }
     23 </style>
     24 
     25 <div id=container hidden=until-found>
     26  Text.
     27  <div id=child></div>
     28 </div>
     29 
     30 
     31 <script>
     32 
     33 function runTest() {
     34  document.getElementById("container").scrollIntoView();
     35  takeScreenshot();
     36 }
     37 
     38 window.onload = requestAnimationFrame(() => {
     39  requestAnimationFrame(() => {
     40    requestAnimationFrame(() => {
     41      runTest();
     42    });
     43  });
     44 });
     45 
     46 </script>
     47 </html>