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/mathml/mfenced-12-ref.html | |
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/mathml/mfenced-12-ref.html')
-rw-r--r-- | layout/reftests/mathml/mfenced-12-ref.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/layout/reftests/mathml/mfenced-12-ref.html b/layout/reftests/mathml/mfenced-12-ref.html new file mode 100644 index 000000000..10d9856b1 --- /dev/null +++ b/layout/reftests/mathml/mfenced-12-ref.html @@ -0,0 +1,40 @@ +<!DOCTYPE html> +<html class="reftest-wait"> + +<math style="font-size:25px; position: absolute; top: 10px; left:10px;"> + <mrow id="outer"> + <mo>(</mo> + <mrow> + <mn id="a" style="visibility:hidden;">a</mn> + <mo>&</mo> + <mn id="c" style="visibility:hidden;">c</mn> + </mrow> + <mo>)</mo> + </mrow> +</math> + +<!-- Implementation kludge. <mfenced> renders the position of the ampersand in + a slightly different position compared to <mo>+<mrow>. + In this test we are only concerned about the size of the fences "(" and + ")", so the ampersand gets redacted. --> +<div id="div" style="position: absolute; background:black; top: 0px; + height: 120px;"></div> + +<script> + function doTest() + { + a = document.getElementById("a"); + c = document.getElementById("c"); + div = document.getElementById("div"); + outer = document.getElementById("outer"); + + left = a.getBoundingClientRect().left; // div's left + div.style.left = left + 'px'; + div.style.width = (c.getBoundingClientRect().right - left ) + 'px'; + + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest, false); +</script> + +</html> |