tor-browser

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

document-element-computed-style.html (673B)


      1 <!DOCTYPE html>
      2 <html style="display:none">
      3 
      4 <link rel=author href="mailto:jarhar@chromium.org">
      5 <link rel=help href="https://bugs.chromium.org/p/chromium/issues/detail?id=1251931">
      6 
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 
     10 <div style="content-visibility:hidden"></div>
     11 
     12 <script>
     13 test(() => {
     14  document.documentElement.offsetTop;
     15  document.documentElement.style.display = "block";
     16  assert_equals(getComputedStyle(document.documentElement).color, 'rgb(0, 0, 0)');
     17 }, `Verifies that ComputedStyle gets updated when the documentElement's style is dirtied in the presence of content-visibility.`);
     18 </script>