tor-browser

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

grid-add-item-with-positioned-items-crash.html (945B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>CSS Grid Layout Test: no crash with adding positioned grid items</title>
      5 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
      6 <link rel="help" href="https://drafts.csswg.org/css-grid/#grid-definition">
      7 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=273898">
      8 <meta name="assert" content="Test that adding grid items when some of them are positioned does not crash." />
      9 
     10 <style>
     11 #grid {
     12  display: grid;
     13  grid-auto-flow: dense;
     14 }
     15 
     16 .absolute {
     17  position: absolute;
     18 }
     19 </style>
     20 </head>
     21 
     22 <body>
     23 <div id="grid">
     24  <div></div>
     25  <div class="absolute"></div>
     26 </div>
     27 
     28 <script>
     29  var grid = document.getElementById("grid");
     30  grid.offsetTop;
     31  var newItem1 = document.createElement("div");
     32  grid.appendChild(newItem1);
     33  var newItem2 = document.createElement("div");
     34  newItem2.className = "absolute";
     35  grid.appendChild(newItem2);
     36 </script>
     37 </body>
     38 </html>