tor-browser

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

inline-size-and-min-width.html (834B)


      1 <!doctype html>
      2 <title>CSS Container Queries Test: query of inline-size container is affected by min-width property</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-conditional-5/#container-queries">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="support/cq-testcommon.js"></script>
      7 <style>
      8  #container {
      9    container-type: inline-size;
     10    min-width: 200px;
     11    width: fit-content;
     12  }
     13  @container (min-width: 200px) {
     14    #child { color: green }
     15  }
     16 </style>
     17 <div id="container">
     18  <div id="child">Green</div>
     19 </div>
     20 <script>
     21  setup(() => assert_implements_size_container_queries());
     22 
     23  test(() => {
     24    assert_equals(getComputedStyle(child).color, "rgb(0, 128, 0)");
     25  }, "min-width of inline-size container affects container size");
     26 </script>