blob: 9bfd7653d1d38a8e4b130eaf7bee00d0a39c9cc0 [file] [log] [blame]
<!DOCTYPE html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>Fraction parameters</title>
math, mspace {
font-size: 20px;
@font-face {
font-family: displaystylegapmin4000;
src: url("/fonts/math/stack-displaystylegapmin4000.woff");
#reference {
background: green;
#frame {
position: absolute;
border-top: 4px solid black;
border-bottom: 4px solid black;
width: 100%;
function runTests() {
var div = document.getElementById("frame");
var refBox = document.getElementById("reference").getBoundingClientRect(); = `${}px`; = `${refBox.height-4}px`;
window.addEventListener("load", function() {
// Delay the check to workaround WebKit's bug
requestAnimationFrame(() => { document.fonts.ready.then(runTests); });
This test passes if the blue squares are aligned:
<math display="block" style="font-family: displaystylegapmin4000">
<mspace height="10em" depth="10em"/>
<mfrac linethickness="0px">
<mspace width="3em" depth="1em"/>
<mspace id="reference" width="3em" height=".5em" depth=".5em"/>
<mfrac linethickness="0px">
<mspace width="3em" depth="1em"/>
<mspace width="1em" height=".5em" depth=".5em" style="background: blue"/>
<mfrac linethickness="0px">
<mspace width="3em" depth="1.5em"/>
<mspace width="1em" height="1em" style="background: blue"/>
<mfrac linethickness="0px">
<mspace width="3em" depth=".5em"/>
<mspace width="1em" depth="1em" style="background: blue"/>
<div id="frame"></div>