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

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

Issue 1020093004: Add initial/inherit/unset tests to font-family-parse-keyword.html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add unset 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 http://crbug.com/389148 - Invalid declaration "font-family: Times,
21 inherit" is treated as valid.
20 </p> 22 </p>
21 <p> 23 <p>
22 The next 7 lines should use the default font (same as this line):<br> 24 The next 11 lines should use the default font (same as this line):<br>
23 Test 1<br> 25 Test 1<br>
24 <span style="font-family: default">Test 2</span><br> 26 <span style="font-family: default">Test 2</span><br>
25 <span style="font-family: default, invalid">Test 3</span><br> 27 <span style="font-family: default, invalid">Test 3</span><br>
26 <span style="font-family: invalid, default">Test 4</span><br> 28 <span style="font-family: invalid, default">Test 4</span><br>
27 <span style="font-family: default, arial">Test 5</span><br> 29 <span style="font-family: default, arial">Test 5</span><br>
28 <span style="font-family: arial, default">Test 6</span><br> 30 <span style="font-family: arial, default">Test 6</span><br>
29 <span style="font-family: invalid, default, arial">Test 7</span> 31 <span style="font-family: invalid, default, arial">Test 7</span><br>
32 <span style="font-family: arial, inherit">Test 8</span><br>
33 <span style="font-family: arial, initial">Test 9</span><br>
34 <span style="font-family: arial, unset">Test 10</span>
30 </p> 35 </p>
31 <p> 36 <p>
32 The next 3 lines should use the font Arial:<br> 37 The next 3 lines should use the font Arial:<br>
33 <span style="font-family: arial">Test 1</span><br> 38 <span style="font-family: arial">Test 1</span><br>
34 <span style="font-family: default foobar, arial">Test 2</span><br> 39 <span style="font-family: default foobar, arial">Test 2</span><br>
35 <span style="font-family: arial, default foobar">Test 3</span> 40 <span style="font-family: arial, default foobar">Test 3</span>
36 </p> 41 </p>
37 <p> 42 <p>
38 The next 9 lines should use the font Ahem (black boxes):<br> 43 The next 9 lines should use the font Ahem (black boxes):<br>
39 <span style="font-family: webkit-ahem">Test 1</span><br> 44 <span style="font-family: webkit-ahem">Test 1</span><br>
40 <span style="font-family: default foo">Test 2</span><br> 45 <span style="font-family: default foo">Test 2</span><br>
41 <span style="font-family: default foo, invalid">Test 3</span><br> 46 <span style="font-family: default foo, invalid">Test 3</span><br>
42 <span style="font-family: invalid, default foo">Test 4</span><br> 47 <span style="font-family: invalid, default foo">Test 4</span><br>
43 <span style="font-family: invalid, default foo, foobar">Test 5</span><br > 48 <span style="font-family: invalid, default foo, foobar">Test 5</span><br >
44 <span style="font-family: bar default">Test 6</span><br> 49 <span style="font-family: bar default">Test 6</span><br>
45 <span style="font-family: bar default, invalid">Test 7</span><br> 50 <span style="font-family: bar default, invalid">Test 7</span><br>
46 <span style="font-family: invalid, bar default">Test 8</span><br> 51 <span style="font-family: invalid, bar default">Test 8</span><br>
47 <span style="font-family: invalid, bar default, foobar">Test 9</span> 52 <span style="font-family: invalid, bar default, foobar">Test 9</span>
48 </p> 53 </p>
49 </body> 54 </body>
50 </html> 55 </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