mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 727804 - Add another mfenced fence size testcase r=fredw
This commit is contained in:
parent
521de766c9
commit
a275d1fe0b
40
layout/reftests/mathml/mfenced-12-ref.html
Normal file
40
layout/reftests/mathml/mfenced-12-ref.html
Normal file
@ -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>
|
35
layout/reftests/mathml/mfenced-12.html
Normal file
35
layout/reftests/mathml/mfenced-12.html
Normal file
@ -0,0 +1,35 @@
|
||||
<!doctype html>
|
||||
<html class="reftest-wait">
|
||||
|
||||
<math style="font-size:25px; position: absolute; top: 10px; left:10px;">
|
||||
<mfenced id="outer" separators="&">
|
||||
<mn id="a" style="visibility:hidden;">a</mn>
|
||||
<mn id="c" style="visibility:hidden;">c</mn>
|
||||
</mfenced>
|
||||
</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>
|
@ -38,6 +38,7 @@ skip-if(B2G&&browserIsRemote) random-if(smallScreen&&Android) fuzzy(255,200) ==
|
||||
== mfenced-9.html mfenced-9-ref.html
|
||||
fails-if(/^Windows\x20NT\x205\.1/.test(http.oscpu)) == mfenced-10.html mfenced-10-ref.html # Windows versions without Cambria Math, see bug 670592
|
||||
fails-if(winWidget&&d2d) == mfenced-11.html mfenced-11-ref.html
|
||||
== mfenced-12.html mfenced-12-ref.html
|
||||
== mi-mathvariant-1.xhtml mi-mathvariant-1-ref.xhtml
|
||||
== mi-mathvariant-2.xhtml mi-mathvariant-2-ref.xhtml
|
||||
!= mi-mathvariant-3.html mi-mathvariant-3-ref.html
|
||||
|
Loading…
Reference in New Issue
Block a user