gecko-dev/layout/reftests/mathml/menclose-4.html
Florian Quèze 85611a7b6d Bug 1331081 - script generated patch to omit addEventListener/removeEventListener's third parameter when it's false, r=jaws.
--HG--
extra : rebase_source : a22344ee1569f58f1f0a01017bfe0d46a6a14602
2017-01-17 11:50:25 +01:00

30 lines
980 B
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<head>
<title>menclose inner and outer circle</title>
<meta charset="utf-8"/>
<script type="text/javascript">
function doTest()
{
var box1 = document.getElementById("outer").getBoundingClientRect();
var box2 = document.getElementById("inner").getBoundingClientRect();
var epsilon = 0.1;
if ((box1.width >= ((Math.sqrt(2) - epsilon)*box2.width)) && (box1.height >= ((Math.sqrt(2) - epsilon)*box2.height))) {
document.body.innerHTML = "Pass";
}
document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate",doTest);
</script>
</head>
<body>
<div style="position: absolute; left: 20px; top: 20px;">
<math>
<menclose id="outer" notation="circle">
<mspace id="inner" width="200px" height="100px"></mspace>
</menclose>
</math>
</div>
</body>
</html>