tor-browser

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

first-letter-of-html-root-refcrash.html (624B)


      1 <!DOCTYPE html>
      2 <title>CSS Test: ::first-letter of html root element crash in combination with removal of body</title>
      3 <link rel="help" href="https://crbug.com/993764">
      4 <link rel="match" href="first-letter-of-html-root-crash-ref.html">
      5 <style id="sheet">
      6  html::first-letter { font-size: initial }
      7 </style>FAIL
      8 <script>
      9  const sel = window.getSelection();
     10  sel.selectAllChildren(document.documentElement);
     11  const range = sel.getRangeAt(0);
     12  document.body.remove();
     13  document.documentElement.appendChild(document.createTextNode("PASS"));
     14  document.documentElement.offsetTop;
     15  range.surroundContents(sheet);
     16 </script>