tor-browser

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

svg-resource-in-container-crash.html (581B)


      1 <!doctype html>
      2 <title>@container with SVG resource shouldn't crash</title>
      3 <link rel="help" href="https://crbug.com/367752728">
      4 <style>
      5  .cq {
      6    container-name: cq;
      7    container-type: inline-size;
      8  }
      9  @container cq (min-width: 1px) {
     10    .cq {
     11      border: 2px solid blue;
     12    }
     13  }
     14 </style>
     15 <div class="cq">
     16  <svg>
     17    <clipPath id="c">
     18      <rect width="100" height="100"/>
     19    </clipPath>
     20    <rect width="200" height="200" clip-path="url(#c)"/>
     21  </svg>
     22 </div>
     23 <script>
     24  document.body.offsetTop;
     25  document.querySelector('.cq > svg').style.width = "100%";
     26 </script>