OLD | NEW |
1 Test parsing the src descriptor of @font-face. | 1 Test parsing the src descriptor of @font-face. |
2 | 2 |
3 Valid rules form the stylesheet: | 3 Valid rules form the stylesheet: |
4 | 4 |
5 @font-face { src: url(font.ttf); } | 5 @font-face { src: url(font.ttf); } |
6 @font-face { src: url(http://foo/bar/font.ttf); } | 6 @font-face { src: url(http://foo/bar/font.ttf); } |
7 @font-face { src: url(font.svg#id); } | 7 @font-face { src: url(font.svg#id); } |
8 @font-face { src: url(font.ttf) format(truetype); } | 8 @font-face { src: url(font.ttf) format(truetype); } |
9 @font-face { src: url(font.woff) format(woff), local(font2); } | 9 @font-face { src: url(font.woff) format(woff), local(font2); } |
10 @font-face { src: url(font2.ttf); } | 10 @font-face { src: url(font2.ttf); } |
(...skipping 20 matching lines...) Expand all Loading... |
31 Invalid rules form the stylesheet: | 31 Invalid rules form the stylesheet: |
32 | 32 |
33 @font-face { } | 33 @font-face { } |
34 @font-face { } | 34 @font-face { } |
35 @font-face { } | 35 @font-face { } |
36 @font-face { } | 36 @font-face { } |
37 @font-face { } | 37 @font-face { } |
38 @font-face { } | 38 @font-face { } |
39 @font-face { } | 39 @font-face { } |
40 @font-face { } | 40 @font-face { } |
41 @font-face { src: url(foo.ttf) !important; } | 41 @font-face { } |
| 42 @font-face { } |
| 43 @font-face { } |
| 44 @font-face { } |
42 Expected result for invalid rules: | 45 Expected result for invalid rules: |
43 | 46 |
44 @font-face { } | 47 @font-face { } |
45 @font-face { } | 48 @font-face { } |
46 @font-face { } | 49 @font-face { } |
47 @font-face { } | 50 @font-face { } |
48 @font-face { } | 51 @font-face { } |
49 @font-face { } | 52 @font-face { } |
50 @font-face { } | 53 @font-face { } |
51 @font-face { } | 54 @font-face { } |
52 @font-face { } | 55 @font-face { } |
53 | 56 |
OLD | NEW |