mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
61
layout/reftests/mathml/subscript-italic-correction.html
Normal file
61
layout/reftests/mathml/subscript-italic-correction.html
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<title>subscript</title>
|
||||
<meta charset="utf-8"/>
|
||||
<script type="text/javascript">
|
||||
function verifyItalicCorrections()
|
||||
{
|
||||
var epsilon = 2;
|
||||
for (var i = 0; i < 8; i += 2) {
|
||||
var sub = document.getElementById("s" + i);
|
||||
var sup = document.getElementById("s" + (i+1));
|
||||
var italicCorrection =
|
||||
sup.getBoundingClientRect().left - sub.getBoundingClientRect().left;
|
||||
if (italicCorrection < epsilon) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function doTest()
|
||||
{
|
||||
if (verifyItalicCorrections()) {
|
||||
document.body.style.background = "#5f5";
|
||||
}
|
||||
document.documentElement.removeAttribute("class");
|
||||
}
|
||||
window.addEventListener("MozReftestInvalidate", doTest, false);
|
||||
</script>
|
||||
</head>
|
||||
<body style="background: #f00; font-size: 50px;">
|
||||
|
||||
<div>
|
||||
<math>
|
||||
<msubsup>
|
||||
<mi mathbackground="#5f5">f</mi>
|
||||
<mspace id="s0" width="50px" height="50px" mathbackground="blue"/>
|
||||
<mspace id="s1" width="50px" height="50px" mathbackground="blue"/>
|
||||
</msubsup>
|
||||
</math>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
|
||||
<div>
|
||||
<math>
|
||||
<mmultiscripts>
|
||||
<mi mathbackground="#5f5">f</mi>
|
||||
<mspace id="s2" width="50px" height="50px" mathbackground="blue"/>
|
||||
<mspace id="s3" width="50px" height="50px" mathbackground="blue"/>
|
||||
<mspace id="s4" width="50px" height="50px" mathbackground="blue"/>
|
||||
<mspace id="s5" width="50px" height="50px" mathbackground="blue"/>
|
||||
<mspace id="s6" width="50px" height="50px" mathbackground="blue"/>
|
||||
<mspace id="s7" width="50px" height="50px" mathbackground="blue"/>
|
||||
</mmultiscripts>
|
||||
</math>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue