Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(703)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/fontfaceset-invalid-family-names.html

Issue 1363233002: Restrict font-family in @font-face to <family-name> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/fontfaceset-invalid-family-names-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 <style>
5 @font-face {
6 font-family: sans-serif;
7 src: local(Arial);
8 }
9
10 @font-face {
11 font-family: serif;
12 src: local(Arial);
13 }
14
15 @font-face {
16 font-family: fantasy;
17 src: local(Arial);
18 }
19
20 @font-face {
21 font-family: cursive;
22 src: local(Arial);
23 }
24
25 @font-face {
26 font-family: monospace;
27 src: local(Arial);
28 }
29
30 @font-face {
31 font-family: inherit;
32 src: local(Arial);
33 }
34
35 @font-face {
36 font-family: initial;
37 src: local(Arial);
38 }
39
40 @font-face {
41 font-family: unset;
42 src: local(Arial);
43 }
44
45 @font-face {
46 font-family: default;
47 src: local(Arial);
48 }
49 </style>
50 <script>
51 description('Tests that font-face with invalid family names are not added to Fon tFaceSet.');
52
53 function runTests() {
54 shouldBe('document.fonts.size', '0');
55 }
56
57 if (document.fonts)
58 runTests();
59 else
60 testFailed('document.fonts does not exist');
61
62 </script>
63 </head>
64 <body>
65 </body>
66 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/css/fontfaceset-invalid-family-names-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698