fontfaceset-no-root-element.html (525B)
1 <!DOCTYPE html> 2 <title>CSS Font Loading test: Load Document FontFaceSet font without documentElement</title> 3 <link rel="help" href="https://drafts.csswg.org/css-font-loading/#font-face-set-load"> 4 <link rel="help" href="https://crbug.com/971035"> 5 <script> 6 test(() => { 7 document.documentElement.remove(); 8 var face = new FontFace("Ahem", "url(/fonts/Ahem.ttf)"); 9 document.fonts.add(face); 10 document.fonts.load("12px Ahem"); 11 }, "Trigger font load after removing documentElement. Should not crash."); 12 </script>