downloadable-font-scoped-to-document.html (1122B)
1 <!DOCTYPE html> 2 3 <html class="reftest-wait"> 4 <head> 5 <title>CSS fonts: Web fonts loaded in a document are not available in other documents</title> 6 <link rel="author" title="Martin Robinson" href="mrobinson@igalia.com"> 7 <link rel="author" title="Mukilan Thiyagarajan" href="mukilan@igalia.com"> 8 <link rel="match" href="downloadable-font-scoped-to-document-ref.html"> 9 <link rel="help" href="https://drafts.csswg.org/css-fonts/#font-face-rule"> 10 </head> 11 12 <body> 13 <p>Test passes if Ahem is only used in the first iframe.</p> 14 <iframe id="iframe1" src="support/iframe-using-ahem-as-web-font.html"></iframe> 15 <iframe id="iframe2" src=""></iframe> 16 17 <script> 18 // Delay the loading of the second iframe to make it more likely that the font 19 // has loaded properly into the first iframe. 20 iframe1.onload = () => { 21 iframe2.src ="support/iframe-missing-font-face-rule.html"; 22 document.documentElement.classList.remove('reftest-wait'); 23 }; 24 </script> 25 </body> 26 27 </html>