mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 07:33:20 +00:00

As with everywhere else we should be using the document rather than the window's viewports. Fixes #6467
35 lines
993 B
HTML
35 lines
993 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<body>
|
|
<iframe
|
|
id="iframe"
|
|
width="500"
|
|
srcdoc="
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<style>
|
|
@font-face {
|
|
font-family: test;
|
|
src: url(../data/pass.woff) format(woff);
|
|
}
|
|
|
|
#foo {
|
|
font-family: test;
|
|
}
|
|
</style>
|
|
<body>
|
|
<p>Test passes if the word PASS appears below.</p>
|
|
<p id='foo'>P</p>
|
|
</body>
|
|
</html>"
|
|
onload="waitForFonts()"
|
|
></iframe>
|
|
<script>
|
|
function waitForFonts() {
|
|
iframe.contentDocument.fonts.ready.then(() => {
|
|
document.documentElement.classList = "";
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|