tor-browser

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

grid-layout-stale-002.html (1119B)


      1 <!DOCTYPE html>
      2 <title>CSS Grid: Do not leave stale pointers 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-002-ref.html">
      7 <meta name="assert" content="Check that we don't leave stale pointers into the internal 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 <p>This test passes if it doesn't crash and it matches the reference.</p>
     14 <span style="display: grid" contenteditable=plaintext-only></span>
     15 <script>
     16 function keyPress(key) {
     17  let actions = new test_driver.Actions()
     18    .keyDown(key)
     19    .keyUp(key);
     20 
     21  return actions.send();
     22 }
     23 function crash() {
     24    keyPress("\t");
     25    keyPress("X");
     26    document.designMode = 'on';
     27    document.execCommand("InsertHTML", false, "<div>");
     28 }
     29 document.addEventListener("DOMContentLoaded", crash, false);
     30 </script>