summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/fontfaceset-invalid-family-names.html
blob: f30e83154e13efe1aaeaf2f7fe91c2058bd2d99a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<html>
<head>
<script src="../../resources/js-test.js"></script>
<style>
@font-face {
    font-family: sans-serif;
    src: local(Arial);
}

@font-face {
    font-family: serif;
    src: local(Arial);
}

@font-face {
    font-family: fantasy;
    src: local(Arial);
}

@font-face {
    font-family: cursive;
    src: local(Arial);
}

@font-face {
    font-family: monospace;
    src: local(Arial);
}

@font-face {
    font-family: inherit;
    src: local(Arial);
}

@font-face {
    font-family: initial;
    src: local(Arial);
}

@font-face {
    font-family: unset;
    src: local(Arial);
}

@font-face {
    font-family: default;
    src: local(Arial);
}
</style>
<script>
description('Tests that font-face with invalid family names are not added to FontFaceSet.');

function runTests() {
    shouldBe('document.fonts.size', '0');
}

if (document.fonts)
    runTests();
else
    testFailed('document.fonts does not exist');

</script>
</head>
<body>
</body>
</html>