blob: 250ebb2b3b03611d039516df5429358267de1fcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="author" title="Myles C. Maxfield" href="mmaxfield@apple.com">
<link rel="help" href="https://drafts.csswg.org/css-font-loading-3/#dom-fontfaceset-delete">
<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>
|