diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /layout/reftests/bugs/355548-4.xml | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/reftests/bugs/355548-4.xml')
-rw-r--r-- | layout/reftests/bugs/355548-4.xml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/layout/reftests/bugs/355548-4.xml b/layout/reftests/bugs/355548-4.xml new file mode 100644 index 000000000..5a73aff01 --- /dev/null +++ b/layout/reftests/bugs/355548-4.xml @@ -0,0 +1,41 @@ +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait"> +<head> +<style> +/* test the situation where an nsStyleFont is cached in the rule tree but we have to blow it + away because MathML is suddenly introduced */ +.v { font: 48px "Verdana"; } +</style> +<script> +function addMathML() { + function createMathMLElement(tag) { + return document.createElementNS("http://www.w3.org/1998/Math/MathML", tag); + } + + var body = document.getElementById("body"); + body.offsetTop; + + // if we don't blow away the rule tree correctly, then we will cache an nsStyleFont with + // a scriptsizemultiplier of 0.71 (the default) and use it to style mstyle2, so the + // scriptlevel change will not scale the text by 0.5 + var math = createMathMLElement("math"); + var mstyle = createMathMLElement("mstyle"); + mstyle.setAttribute("scriptsizemultiplier", "0.5"); + var mstyle2 = createMathMLElement("mstyle"); + mstyle2.setAttribute("class", "v"); + var mstyle3 = createMathMLElement("mstyle"); + mstyle3.setAttribute("scriptlevel", "+1"); + var mi = createMathMLElement("mi"); + mi.textContent = "Id"; + mstyle3.appendChild(mi); + mstyle2.appendChild(mstyle3); + mstyle.appendChild(mstyle2); + math.appendChild(mstyle); + body.appendChild(math); + document.documentElement.className = ''; +} +</script> +</head> +<body id="body" onload="addMathML()"> +<p><span class="v">Hello</span></p> +</body> +</html> |