Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <html> |
michael@0 | 2 | <head> |
michael@0 | 3 | <style type="text/css"> |
michael@0 | 4 | |
michael@0 | 5 | body { font-family: monospace; width: 4ch; } |
michael@0 | 6 | body::first-line { } |
michael@0 | 7 | body *::before { content: 'w';} |
michael@0 | 8 | |
michael@0 | 9 | </style> |
michael@0 | 10 | |
michael@0 | 11 | <script type="text/javascript"> |
michael@0 | 12 | |
michael@0 | 13 | function boom() |
michael@0 | 14 | { |
michael@0 | 15 | var de = document.documentElement; |
michael@0 | 16 | var body = document.body; |
michael@0 | 17 | |
michael@0 | 18 | var span = document.createElementNS("http://www.w3.org/1999/xhtml", "span"); |
michael@0 | 19 | var r1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mrow"); |
michael@0 | 20 | var mmm = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mmultiscripts"); |
michael@0 | 21 | |
michael@0 | 22 | body.appendChild(span); |
michael@0 | 23 | r1.appendChild(document.createElementNS("http://www.w3.org/1998/Math/MathML", "mrow")); |
michael@0 | 24 | body.appendChild(r1); |
michael@0 | 25 | body.appendChild(mmm); |
michael@0 | 26 | de.offsetHeight; |
michael@0 | 27 | r1.appendChild(document.createElementNS("http://www.w3.org/1998/Math/MathML", 'mrow')); |
michael@0 | 28 | de.offsetHeight; |
michael@0 | 29 | mmm.appendChild(document.createElementNS("http://www.w3.org/1998/Math/MathML", 'mrow')); |
michael@0 | 30 | de.offsetHeight; |
michael@0 | 31 | |
michael@0 | 32 | document.removeChild(de); |
michael@0 | 33 | document.appendChild(de); |
michael@0 | 34 | de.offsetHeight; |
michael@0 | 35 | } |
michael@0 | 36 | |
michael@0 | 37 | window.addEventListener("load", boom, false); |
michael@0 | 38 | |
michael@0 | 39 | </script> |
michael@0 | 40 | </head> |
michael@0 | 41 | <body></body> |
michael@0 | 42 | </html> |