tor-browser

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

content-visibility-019.sub.https.html (1052B)


      1 <!doctype HTML>
      2 <html class="reftest-wait">
      3 <meta charset="utf8">
      4 <title>Content Visibility: cross-origin iframe locking</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="content-visibility-019-ref.html">
      8 <script src="/common/reftest-wait.js"></script>
      9 
     10 <style>
     11 div {
     12  background: blue;
     13  color: white;
     14 }
     15 .hidden {
     16  content-visibility: hidden;
     17 }
     18 </style>
     19 
     20 <div>Test passes if there is a box with no text below.</div>
     21 <iframe id="frame" width=400 height=200 src='https://{{domains[www]}}:{{ports[https][0]}}/wpt_internal/display-lock/css-content-visibility/resources/frame.html'></iframe>
     22 <div>Test passes if there is a box with no text above.</div>
     23 
     24 <script>
     25 async function runTest() {
     26  document.getElementById("frame").classList.add("hidden");
     27  requestAnimationFrame(takeScreenshot);
     28 }
     29 
     30 window.onload = () => {
     31  requestAnimationFrame(() => {
     32    requestAnimationFrame(runTest);
     33  });
     34 };
     35 </script>
     36 </html>