tenfourfox/layout/reftests/mathml/opentype-fraction-dynamic-linethickness.html
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

39 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html class="reftest-wait">
<head>
<title>mfrac linethickness</title>
<style type="text/css">
math {
font-size: 10px;
}
@font-face {
font-family: fraction-1;
src: url(../fonts/math/fraction-1.otf);
}
</style>
<script type="text/javascript">
function doTest() {
var mfracs = document.getElementsByTagName("mfrac");
mfracs[0].removeAttribute("linethickness");
mfracs[1].removeAttribute("linethickness");
document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate", doTest, false);
</script>
</head>
<body>
<math style="font-family: fraction-1;">
<mfrac linethickness="200%">
<mspace height="1em" width="1em" mathbackground="red"/>
<mspace height="1em" width="1em" mathbackground="red"/>
</mfrac>
</math>
<math displaystyle="true" style="font-family: fraction-1;">
<mfrac linethickness="200%">
<mspace height="1em" width="1em" mathbackground="red"/>
<mspace height="1em" width="1em" mathbackground="red"/>
</mfrac>
</math>
</body>
</html>