tor-browser

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

content-visibility-092.html (914B)


      1 <!doctype HTML>
      2 <meta charset="utf8">
      3 <title>CSS Content Visibility: getComputedStyle works in hidden c-v subtree and an absolutely positioned element</title>
      4 <link rel="author" title="Rob Buis" href="mailto:rbuis@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility">
      6 <meta name="assert" content="getComputedStyle works in hidden c-v subtree and an absolutely positioned element">
      7 
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 
     11 <style>
     12 #container { content-visibility: hidden }
     13 </style>
     14 
     15 <div id=container style="width:200px">
     16 <div id=target style="width:50%;position: absolute"></div>
     17 </div>
     18 
     19 <script>
     20 test(() => {
     21  const computedStyle = getComputedStyle(target);
     22  assert_equals(computedStyle.width, "100px");
     23 }, "getComputedStyle works in hidden c-v subtree and an absolutely positioned element");
     24 </script>