Bug 1882817 - Export mo-glyph-size.html to WPT. r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D203392
This commit is contained in:
Frédéric Wang 2024-03-04 16:28:36 +00:00
Родитель e49f262bd7
Коммит 263be9ea85
5 изменённых файлов: 65 добавлений и 65 удалений

Просмотреть файл

@ -1,14 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<!-- Bug 1219068 -->
<div id="hider"
style="position:absolute; top:0; left:0; background-color:green;
height:1em; width:100%; z-index:1; padding-top:5px;
padding-bottom:5px;" />
</body>
</html>

Просмотреть файл

@ -1,50 +0,0 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<meta charset="UTF-8">
</head>
<body>
<!-- Bug 1219068 -->
<math style="position:absolute; top: 0; font-size:1em; z-index: 0;" display="block">
<mrow>
<mo>|</mo>
<mrow>
<mi>f</mi>
<mrow>
<mn>(</mn>
<mi>x</mi>
<mn>)</mn>
</mrow>
<mn>-</mn>
<mrow>
<mi>f</mi>
<mrow>
<mn>(</mn>
<msub>
<mi>x</mi>
<mn>0</mn>
</msub>
<mn>)</mn>
</mrow>
</mrow>
</mrow>
<mo>|</mo>
</mrow>
</math>
<div id="hider"
style="position:absolute; top:0; left:0; background-color:green;
height:1em; width:100%; z-index:1; padding-top:5px;
padding-bottom:5px; visibility:hidden" />
<script>
function obscureMathML() {
var hider = document.getElementById("hider");
hider.style.visibility="visible";
// The math should now be completely obscured
document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate", obscureMathML);
</script>
</body>
</html>

Просмотреть файл

@ -15,7 +15,6 @@ fails-if(cocoaWidget) == scale-stretchy-3.xhtml scale-stretchy-3-ref.xhtml
== munder-mover-align-accent-true.html munder-mover-align-accent-true-ref.html
== munder-mover-align-accent-false.html munder-mover-align-accent-false-ref.html
== munderover-empty-scripts.html munderover-empty-scripts-ref.html
== mo-glyph-size.html mo-glyph-size-ref.html
fuzzy(0-1,0-80) fuzzy-if(Android,0-255,0-105) fuzzy-if(gtkWidget,0-255,0-136) skip-if(winWidget) == multiscripts-1.html multiscripts-1-ref.html # Windows: bug 1314684; Android: bug 1392254; Linux: bug 1599638
fails-if(winWidget) fuzzy-if(gtkWidget,255-255,776226-776226) == subscript-italic-correction.html subscript-italic-correction-ref.html # bug 961482 (Windows), bug 1599640 (Linux)

Просмотреть файл

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>mo glyph height with default font (reference)</title>
</head>
<body>
<div id="hider"
style="position:absolute; top:0; left:0; background-color:green;
height:1em; width:100%; z-index:1; padding-top:5px;
padding-bottom:5px;" />
</body>
</html>

Просмотреть файл

@ -0,0 +1,52 @@
<!DOCTYPE html>
<html class="reftest-wait">
<head>
<meta charset="UTF-8">
<title>mo glyph height with default font</title>
<meta name="assert" content="Verify operators with default fonts are not too tall.">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1219068"/>
<link rel="match" href="mo-glyph-height-with-default-font-ref.html"/>
</head>
<body>
<math style="position:absolute; top: 0; font-size:1em; z-index: 0;" display="block">
<mrow>
<mo>|</mo>
<mrow>
<mi>f</mi>
<mrow>
<mn>(</mn>
<mi>x</mi>
<mn>)</mn>
</mrow>
<mn></mn>
<mrow>
<mi>f</mi>
<mrow>
<mn>(</mn>
<msub>
<mi>x</mi>
<mn>0</mn>
</msub>
<mn>)</mn>
</mrow>
</mrow>
</mrow>
<mo>|</mo>
</mrow>
</math>
<div id="hider"
style="position:absolute; top:0; left:0; background-color:green;
height:1em; width:100%; z-index:1; padding-top:5px;
padding-bottom:5px; visibility:hidden" />
<script>
function obscureMathML() {
var hider = document.getElementById("hider");
hider.style.visibility="visible";
// The math should now be completely obscured
document.documentElement.removeAttribute("class");
}
window.addEventListener("TestRendered", obscureMathML);
</script>
</body>
</html>