Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" title="Myles C. Maxfield" href="mmaxfield@apple.com">
<meta name="assert" content="Ensure that calling delete() with a CSS-connected FontFace has no effect." />
<link rel="match" href="fontfaceset-delete-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>
let fonts = document.fonts;
let font = fonts.keys().next().value;
fonts.delete(font);
</script>
</html>