tor-browser

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

svg-layout-root-crash.html (613B)


      1 <!doctype html>
      2 <title>@container changing display of SVG element should not crash</title>
      3 <link rel="help" href="https://crbug.com/1245689">
      4 <iframe id="frame" style="width: 200px"></iframe>
      5 <script>
      6  frame.srcdoc = `
      7    <style>
      8      #container {
      9        container-type: inline-size;
     10      }
     11      @container (min-width: 300px) {
     12        .hide { display: none; }
     13      }
     14    </style>
     15    <div id="container">
     16      <div class="hide"><svg></svg></div>
     17    </div>`;
     18 
     19  requestAnimationFrame(() =>
     20      requestAnimationFrame(() =>
     21          requestAnimationFrame(() => frame.style.width = "400px")));
     22 </script>