tor-browser

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

file-selector-button-display-toggle-crash.html (507B)


      1 <!doctype html>
      2 <title>Shouldn't assert when re-creating a ::file-selector-button pseudo-element after it being display: none</title>
      3 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5049">
      4 <style>
      5  .tweak::file-selector-button {
      6    display: none;
      7  }
      8 </style>
      9 <input type="file">
     10 <script>
     11  let input = document.querySelector("input");
     12  input.getBoundingClientRect().top;
     13  input.classList.add("tweak");
     14  input.getBoundingClientRect().top;
     15  input.classList.remove("tweak");
     16 </script>