tor-browser

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

outline-scrollIntoView-crash.html (611B)


      1 <!DOCTYPE html>
      2 <link rel="help" title="7.1. 'outline' property" href="http://www.w3.org/TR/css3-ui/#outline">
      3 <link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
      4 <body onload="run_test()">
      5  <span id="root"></span>
      6 <script>
      7 function build_tree(n) {
      8  let last_leaf = root;
      9  for (let i = 0; i < n; ++i) {
     10    const div = document.createElement('div');
     11    const inline_box = document.createElement('span');
     12    div.appendChild(inline_box);
     13    last_leaf.appendChild(div);
     14    last_leaf = inline_box;
     15  }
     16 }
     17 build_tree(30);
     18 
     19 function run_test() {
     20  root.scrollIntoView();
     21 }
     22 </script>
     23 </body>