tor-browser

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

commitStyles-crash.html (721B)


      1 <!doctype html>
      2 <link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=1741491">
      3 <script>
      4  class CustomElement0 extends HTMLElement {
      5    constructor () {
      6      super()
      7    }
      8 
      9    static get observedAttributes () { return ["style"] }
     10 
     11    async attributeChangedCallback () {
     12      const animation = this.animate([{
     13        "boxShadow": "none",
     14        "visibility": "collapse"
     15      }], 1957)
     16      animation.commitStyles()
     17    }
     18  }
     19 
     20  customElements.define("custom-element-0", CustomElement0)
     21  window.addEventListener("load", () => {
     22    const custom = document.createElement("custom-element-0")
     23    document.documentElement.appendChild(custom)
     24    custom.style.fontFamily = "family_name_0"
     25  })
     26 </script>