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

Side by Side Diff: LayoutTests/fast/css/font-family-parse-keyword.html

Issue 1020023002: Treat standalone default/initial/inherit in font-family as invalid (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 | LayoutTests/fast/css/font-family-parse-keyword-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/font-family-parse-keyword-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698