tor-browser

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

remove-svg-grid-item-001.html (913B)


      1 <!DOCTYPE html>
      2 <title>CSS Grid Layout Test: Remove a first child in grid items</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-grid-1/#grid-item">
      4 <link rel="stylesheet" href="/css/support/grid.css"/>
      5 <link rel="match" href="../reference/grid-item-script-001-ref.html">
      6 <meta name="assert" content="This test ensures that removing a first child element in grid items doesn't crash.">
      7 <link rel="stylesheet" href="/css/support/grid.css"/>
      8 <div class="grid">
      9  <svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='190'>
     10    <polygon points='100,10 40,180 190,60 10,60 160,180' style='fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;'>
     11  </svg>
     12 </div>
     13 
     14 <script>
     15  var grid = document.getElementsByClassName("grid")[0];
     16  grid.offsetTop;
     17  while (grid.firstChild)
     18    grid.removeChild(grid.firstChild);
     19  grid.offsetTop;
     20  grid.innerHTML = "Test passes if it doesn't crash.";
     21 </script>