Skip to content

Commit a170055

Browse files
committed
Bug 1575899 [wpt PR 18614] - MathML: Wait for Ahem fonts to be ready for displaystyle dynamic tests., a=testonly
Automatic update from web-platform-tests MathML: Wait for Ahem fonts to be ready for displaystyle dynamic tests. (#18614) -- wpt-commits: 3ccf6da39967fe9e9c296c4b9342e3de8dcf4c98 wpt-pr: 18614 UltraBlame original commit: 4d3a1568b0e24961e8c5adb46fc1e87ed1989e97
1 parent 2791c1a commit a170055

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

testing/web-platform/tests/mathml/relations/css-styling/displaystyle-013.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@
2121
document.getElementById("m6").removeAttribute("displaystyle");
2222
document.documentElement.removeAttribute("class");
2323
}
24-
window.addEventListener("load", doTest);
24+
window.addEventListener("load", function() {
25+
// Delay the check to workaround WebKit's bug https://webkit.org/b/174030.
26+
requestAnimationFrame(() => { document.fonts.ready.then(doTest); });
27+
});
2528
</script>
2629
<link rel="stylesheet" href="/fonts/ahem.css">
2730
<style>

testing/web-platform/tests/mathml/relations/css-styling/displaystyle-014.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
setAttribute('mathbackground', 'red');
1919
document.documentElement.removeAttribute("class");
2020
}
21-
window.addEventListener("load", doTest);
21+
window.addEventListener("load", function() {
22+
// Delay the check to workaround WebKit's bug https://webkit.org/b/174030.
23+
requestAnimationFrame(() => { document.fonts.ready.then(doTest); });
24+
});
2225
</script>
2326
<link rel="stylesheet" href="/fonts/ahem.css">
2427
<style>

0 commit comments

Comments
 (0)