OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 @font-face { | 3 @font-face { |
4 font-family: webkit-ahem; | 4 font-family: webkit-ahem; |
5 src: url(../../resources/Ahem.ttf) format(truetype); | 5 src: url(../../resources/Ahem.ttf) format(truetype); |
6 } | 6 } |
7 @font-face { | 7 @font-face { |
8 font-family: default foo; | 8 font-family: default foo; |
9 src: url(../../resources/Ahem.ttf) format(truetype); | 9 src: url(../../resources/Ahem.ttf) format(truetype); |
10 } | 10 } |
11 @font-face { | 11 @font-face { |
12 font-family: bar default; | 12 font-family: bar default; |
13 src: url(../../resources/Ahem.ttf) format(truetype); | 13 src: url(../../resources/Ahem.ttf) format(truetype); |
14 } | 14 } |
15 </style> | 15 </style> |
16 <body> | 16 <body> |
17 <p> | 17 <p> |
18 http://crbug.com/226632 - CSSParser::parseFontFamily should allow | 18 http://crbug.com/226632 - CSSParser::parseFontFamily should allow |
19 the keyword "default" as part of a font name. | 19 the keyword "default" as part of a font name. |
20 </p> | 20 </p> |
21 <p> | 21 <p> |
22 The next 4 lines should use the default font (same as this line):<br> | 22 The next 7 lines should use the default font (same as this line):<br> |
23 Test 1<br> | 23 Test 1<br> |
24 <span style="font-family: default">Test 2</span><br> | 24 <span style="font-family: default">Test 2</span><br> |
25 <span style="font-family: default, invalid">Test 3</span><br> | 25 <span style="font-family: default, invalid">Test 3</span><br> |
26 <span style="font-family: invalid, default">Test 4</span> | 26 <span style="font-family: invalid, default">Test 4</span><br> |
| 27 <span style="font-family: default, arial">Test 5</span><br> |
| 28 <span style="font-family: arial, default">Test 6</span><br> |
| 29 <span style="font-family: invalid, default, arial">Test 7</span> |
27 </p> | 30 </p> |
28 <p> | 31 <p> |
29 The next 6 lines should use the font Arial:<br> | 32 The next 3 lines should use the font Arial:<br> |
30 <span style="font-family: arial">Test 1</span><br> | 33 <span style="font-family: arial">Test 1</span><br> |
31 <span style="font-family: default, arial">Test 2</span><br> | 34 <span style="font-family: default foobar, arial">Test 2</span><br> |
32 <span style="font-family: default foobar, arial">Test 3</span><br> | 35 <span style="font-family: arial, default foobar">Test 3</span> |
33 <span style="font-family: arial, default">Test 4</span><br> | |
34 <span style="font-family: arial, default foobar">Test 5</span><br> | |
35 <span style="font-family: invalid, default, arial">Test 6</span> | |
36 </p> | 36 </p> |
37 <p> | 37 <p> |
38 The next 9 lines should use the font Ahem (black boxes):<br> | 38 The next 9 lines should use the font Ahem (black boxes):<br> |
39 <span style="font-family: webkit-ahem">Test 1</span><br> | 39 <span style="font-family: webkit-ahem">Test 1</span><br> |
40 <span style="font-family: default foo">Test 2</span><br> | 40 <span style="font-family: default foo">Test 2</span><br> |
41 <span style="font-family: default foo, invalid">Test 3</span><br> | 41 <span style="font-family: default foo, invalid">Test 3</span><br> |
42 <span style="font-family: invalid, default foo">Test 4</span><br> | 42 <span style="font-family: invalid, default foo">Test 4</span><br> |
43 <span style="font-family: invalid, default foo, foobar">Test 5</span><br
> | 43 <span style="font-family: invalid, default foo, foobar">Test 5</span><br
> |
44 <span style="font-family: bar default">Test 6</span><br> | 44 <span style="font-family: bar default">Test 6</span><br> |
45 <span style="font-family: bar default, invalid">Test 7</span><br> | 45 <span style="font-family: bar default, invalid">Test 7</span><br> |
46 <span style="font-family: invalid, bar default">Test 8</span><br> | 46 <span style="font-family: invalid, bar default">Test 8</span><br> |
47 <span style="font-family: invalid, bar default, foobar">Test 9</span> | 47 <span style="font-family: invalid, bar default, foobar">Test 9</span> |
48 </p> | 48 </p> |
49 </body> | 49 </body> |
50 </html> | 50 </html> |
OLD | NEW |