tor-browser

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

content-visibility-094.html (1135B)


      1 <!doctype HTML>
      2 <html class="reftest-wait">
      3 <meta charset="utf8">
      4 <title>Content Visibility: hidden effect on table types</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 <link rel="match" href="content-visibility-094-ref.html">
      8 <meta name="assert" content="content-visibility: hidden effect on table types">
      9 
     10 <script src="/common/reftest-wait.js"></script>
     11 
     12 <style>
     13 table {
     14  width: 150px;
     15  height: 150px;
     16  background: lightblue;
     17 }
     18 .hidden {
     19  content-visibility: hidden;
     20 }
     21 </style>
     22 
     23 <table id=table>
     24  <caption id=caption>
     25    <div>Test fails if this text is visible.</div>
     26  </caption>
     27  <tr id=tr>
     28    <td id=td>
     29      <div>Test passes if this text is visible.</div>
     30    </td>
     31  </tr>
     32 </table>
     33 
     34 <script>
     35 function runTest() {
     36  document.getElementById("table").classList.add("hidden");
     37  document.getElementById("tr").classList.add("hidden");
     38  document.getElementById("caption").classList.add("hidden");
     39  requestAnimationFrame(takeScreenshot);
     40 }
     41 
     42 window.onload = () => requestAnimationFrame(runTest);
     43 </script>
     44 </html>