tor-browser

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

container-units-auto.html (694B)


      1 <!DOCTYPE html>
      2 <title>CSS Container Queries Test: auto sized size container unit</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-conditional-5/#container-lengths">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <style>
      7  #container {
      8    container-type: size;
      9  }
     10  #target {
     11    width: 100cqh;
     12    height: calc(100px + 1000cqh);
     13  }
     14 </style>
     15 <div id="container">
     16  <div id="target"></div>
     17 </div>
     18 <script>
     19  test(() => {
     20    assert_equals(getComputedStyle(target).width, "0px");
     21    assert_equals(getComputedStyle(target).height, "100px");
     22  }, "Resolving cqh against a auto height size container should be 0");
     23 </script>