Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-font-loading/fontfaceset-clear-css-connected-2.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" title="Myles C. Maxfield" href="mmaxfield@apple.com">
<meta name="assert" content="Ensure that calling clear() does not remove CSS-connected FontFaces." />
<link rel="match" href="fontfaceset-clear-css-connected-2-ref.html">
<style>
@font-face {
font-family: "WebFont";
src: url("resources/Rochester.otf") format("opentype");
}
</style>
<div style="font: 48px 'WebFont';">Hi</div>
<script>
document.fonts.clear();
</script>
</html>