mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-07 06:54:33 +00:00
138 lines
2.9 KiB
HTML
138 lines
2.9 KiB
HTML
|
<!doctype html>
|
|||
|
<!-- Test that non-stretchy largeops are bigger in display mode -->
|
|||
|
|
|||
|
<html class="reftest-wait">
|
|||
|
<head>
|
|||
|
<title>Largeop stretching</title>
|
|||
|
<meta charset="utf-8"/>
|
|||
|
<script type="text/javascript">
|
|||
|
|
|||
|
function verifyGreaterThan(aElement, aReference) {
|
|||
|
/* Verify that the height of the element is greater than that of the
|
|||
|
reference, and otherwise paint the element in red. */
|
|||
|
var element = document.getElementById(aElement);
|
|||
|
var ref = document.getElementById(aReference);
|
|||
|
if (element.getBoundingClientRect().height -
|
|||
|
ref.getBoundingClientRect().height <= 1) {
|
|||
|
element.setAttribute("mathcolor", "red");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
function doTest() {
|
|||
|
/* Ensure that largeops are bigger in displaystyle */
|
|||
|
var numTests = 10; // zero indexed
|
|||
|
var opPrefix = "mo";
|
|||
|
var refPrefix = "moRef";
|
|||
|
for (var i = 0; i < numTests; i++)
|
|||
|
{
|
|||
|
verifyGreaterThan(opPrefix + i, refPrefix + i);
|
|||
|
}
|
|||
|
document.documentElement.removeAttribute("class");
|
|||
|
|
|||
|
}
|
|||
|
</script>
|
|||
|
</head>
|
|||
|
<body onload="doTest();">
|
|||
|
<p>
|
|||
|
<math displaystyle="true">
|
|||
|
<mo id="mo0">⨀</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math displaystyle="true">
|
|||
|
<mo id="mo1">⨁</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math displaystyle="true">
|
|||
|
<mo id="mo2">⨃</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math displaystyle="true">
|
|||
|
<mo id="mo3">⨅</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math displaystyle="true">
|
|||
|
<mo id="mo4">⨇</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math displaystyle="true">
|
|||
|
<mo id="mo5">⨈</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math displaystyle="true">
|
|||
|
<mo id="mo6">⨉</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math displaystyle="true">
|
|||
|
<mo id="mo7">⨊</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math displaystyle="true">
|
|||
|
<mo id="mo8">⫼</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math displaystyle="true">
|
|||
|
<mo id="mo9">⫿</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math>
|
|||
|
<mo id="moRef0">⨀</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math>
|
|||
|
<mo id="moRef1">⨁</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math>
|
|||
|
<mo id="moRef2">⨃</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math>
|
|||
|
<mo id="moRef3">⨅</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math>
|
|||
|
<mo id="moRef4">⨇</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math>
|
|||
|
<mo id="moRef5">⨈</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math>
|
|||
|
<mo id="moRef6">⨉</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math>
|
|||
|
<mo id="moRef7">⨊</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math>
|
|||
|
<mo id="moRef8">⫼</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
<math>
|
|||
|
<mo id="moRef9">⫿</mo>
|
|||
|
</math>
|
|||
|
</p>
|
|||
|
</body>
|
|||
|
</html>
|