Bug 1980099 - patch 4 - Use Ahem font in ruby-position-* reftests. r=layout-jp-market-reviewers,TYLin

Differential Revision: https://phabricator.services.mozilla.com/D259840
This commit is contained in:
Jonathan Kew
2025-08-15 21:23:23 +00:00
committed by jkew@mozilla.com
parent c76ee171cc
commit e6e7779ffc
6 changed files with 21 additions and 12 deletions
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" class="reftest-wait">
<head>
<meta charset="UTF-8">
<title>Bug 1055665 - Test for ruby-position</title>
@@ -7,7 +7,7 @@
<script type="text/javascript" src="utils.js"></script>
<style>
body {
font-family: monospace;
font: 50px Ahem;
}
.annotation, .annotation > div {
position: absolute;
@@ -29,7 +29,10 @@
</div>
</div>
<script type="text/javascript">
makeBSizeOfParentMatch(document.getElementsByTagName('span'));
document.fonts.ready.then(() => {
makeBSizeOfParentMatch(document.getElementsByTagName('span'));
document.documentElement.classList.remove("reftest-wait");
})
</script>
</body>
</html>
@@ -6,7 +6,7 @@
<link rel="stylesheet" href="common.css">
<style>
body {
font-family: monospace;
font: 50px Ahem;
/* use a large line-height here to avoid additional leadings */
line-height: 8em;
}
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" class="reftest-wait">
<head>
<meta charset="UTF-8">
<title>Bug 1055665 - Test for ruby-position</title>
@@ -10,7 +10,7 @@
writing-mode: vertical-lr;
}
body {
font-family: monospace;
font: 50px Ahem;
}
.annotation, .annotation > div {
position: absolute;
@@ -32,7 +32,10 @@
</div>
</div>
<script type="text/javascript">
makeBSizeOfParentMatch(document.getElementsByTagName('span'));
document.fonts.ready.then(() => {
makeBSizeOfParentMatch(document.getElementsByTagName('span'));
document.documentElement.classList.remove("reftest-wait");
})
</script>
</body>
</html>
@@ -9,7 +9,7 @@
writing-mode: vertical-lr;
}
body {
font-family: monospace;
font: 50px Ahem;
/* use a large line-height here to avoid additional leadings */
line-height: 8em;
}
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" class="reftest-wait">
<head>
<meta charset="UTF-8">
<title>Bug 1055665 - Test for ruby-position</title>
@@ -10,7 +10,7 @@
writing-mode: vertical-rl;
}
body {
font-family: monospace;
font: 50px Ahem;
}
.annotation, .annotation > div {
position: absolute;
@@ -32,7 +32,10 @@
</div>
</div>
<script type="text/javascript">
makeBSizeOfParentMatch(document.getElementsByTagName('span'));
document.fonts.ready.then(() => {
makeBSizeOfParentMatch(document.getElementsByTagName('span'));
document.documentElement.classList.remove("reftest-wait");
})
</script>
</body>
</html>
@@ -9,7 +9,7 @@
writing-mode: vertical-rl;
}
body {
font-family: monospace;
font: 50px Ahem;
/* use a large line-height here to avoid additional leadings */
line-height: 8em;
}