mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 03:35:33 +00:00
76c1b26215
This allows us to avoid posting animation-related restyles when removing elements from the document tree. MozReview-Commit-ID: CzN4S0DTUMa --HG-- extra : rebase_source : a5b94d9ad5b1b2243abd0a5b188eec2b334df74d
10 lines
385 B
HTML
10 lines
385 B
HTML
<script>
|
|
document.documentElement.appendChild(document.createElement("meter"))
|
|
a = document.createElement("textarea")
|
|
document.documentElement.appendChild(a)
|
|
b = document.createElement("style")
|
|
b.appendChild(document.createTextNode("*::-moz-meter-bar { text-indent: calc(50%); scroll-behavior: smooth; transition-duration: 250ms; }"))
|
|
a.select()
|
|
document.head.appendChild(b)
|
|
</script>
|