summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-font-loading/fontfaceset-clear-css-connected-2.html
blob: af285460ef6dbfee1f1ff97054fc042530447367 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!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-clear">
<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>