tor-browser

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

grid-layout-stale-001.html (1324B)


      1 <!doctype html>
      2 <title>CSS Grid: Do not add non-children of the grid into the grid container</title>
      3 <link rel="author" title="Sergio Villar" href="mailto:svillar@igalia.com">
      4 <link rel="help" href="https://drafts.csswg.org/css-grid">
      5 <link rel="help" href="https://crbug.com/313293">
      6 <link rel="match" href="reference/grid-layout-stale-001-ref.html">
      7 <meta name="assert" content="Check that we do not add non-children of the grid into the grid representation."/>
      8 
      9 <script src="/resources/testdriver.js"></script>
     10 <script src="/resources/testdriver-actions.js"></script>
     11 <script src="/resources/testdriver-vendor.js"></script>
     12 
     13 <style>
     14  embed { position: absolute; }
     15  .c1 { animation-delay: 45762s; }
     16 </style>
     17 
     18 <p>This test passes if it doesn't crash and it matches the reference.</p>
     19 <div style="display: grid;">
     20    <embed type="something-not-js">
     21 </div>
     22 
     23 <script>
     24 function keyPress(key) {
     25  let actions = new test_driver.Actions()
     26    .keyDown(key)
     27    .keyUp(key);
     28 
     29  return actions.send();
     30 }
     31 function crash() {
     32  var highlight = document.createElementNS("http://www.w3.org/1999/xhtml", "highlight");
     33  highlight.setAttribute("class", "c1");
     34  document.body.appendChild(highlight);
     35 
     36  for (i=0; i != 8; i++)
     37    keyPress("\t");
     38  keyPress("X");
     39 }
     40 
     41 document.addEventListener("DOMContentLoaded", crash, false);
     42 </script>