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

Side by Side Diff: LayoutTests/fast/css/cursor-parsing.html

Issue 23816008: Drop CSS cursor quirk for missing fallback cursor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added default pointer fallback to cursor rule in http test Created 7 years, 3 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/cursor-parsing-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
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../js/resources/js-test-pre.js"></script> 4 <script src="../js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 9 <script>
10 description("Test the parsing of the cursor property."); 10 description("Test the parsing of the cursor property.");
11 11
(...skipping 25 matching lines...) Expand all
37 37
38 // Note that any absolute URL will suffice for these tests (can't use relative U RLs 38 // Note that any absolute URL will suffice for these tests (can't use relative U RLs
39 // since they'll be converted to absolute form in the output). I chose file URL s just 39 // since they'll be converted to absolute form in the output). I chose file URL s just
40 // to avoid triggering any network activity. 40 // to avoid triggering any network activity.
41 41
42 debug('Test a bunch of cursor rules which should round-trip exactly.'); 42 debug('Test a bunch of cursor rules which should round-trip exactly.');
43 testCursorRule('auto'); 43 testCursorRule('auto');
44 testCursorRule('none'); 44 testCursorRule('none');
45 testCursorRule('copy'); 45 testCursorRule('copy');
46 testCursorRule('-webkit-grabbing'); 46 testCursorRule('-webkit-grabbing');
47 testCursorRule('url(file:///foo.png)'); // IE compatibility
48 testCursorRule('url(file:///foo.png), crosshair'); 47 testCursorRule('url(file:///foo.png), crosshair');
49 testCursorRule('url(file:///foo.png), url(file:///foo2.png), pointer'); 48 testCursorRule('url(file:///foo.png), url(file:///foo2.png), pointer');
50 testCursorRule('url(file:///foo.png) 12 3, pointer'); 49 testCursorRule('url(file:///foo.png) 12 3, pointer');
51 testCursorRule('url(file:///foo.png) 0 0, pointer'); 50 testCursorRule('url(file:///foo.png) 0 0, pointer');
52 testCursorRule('url(file:///foo.png) 12 3, url(file:///foo2.png), url(file:///fo o3.png) 6 7, crosshair'); 51 testCursorRule('url(file:///foo.png) 12 3, url(file:///foo2.png), url(file:///fo o3.png) 6 7, crosshair');
53 testCursorRule('url(file:///foo.png) -2 3, pointer'); 52 testCursorRule('url(file:///foo.png) -2 3, pointer');
54 testCursorRule('url(file:///foo.png) 2 -3, pointer'); 53 testCursorRule('url(file:///foo.png) 2 -3, pointer');
55 testCursorRule('url(file:///foo.png) -1 -1, pointer'); 54 testCursorRule('url(file:///foo.png) -1 -1, pointer');
56 55
57 debug(''); 56 debug('');
58 debug('Test a bunch of invalid cursor rules which shouldn\'t parse at all.'); 57 debug('Test a bunch of invalid cursor rules which shouldn\'t parse at all.');
59 testInvalidCursorRule('nonexistent'); 58 testInvalidCursorRule('nonexistent');
60 testInvalidCursorRule('ltr'); 59 testInvalidCursorRule('ltr');
61 testInvalidCursorRule('inline'); 60 testInvalidCursorRule('inline');
61 testInvalidCursorRule('hand');
62 testInvalidCursorRule('url(file:///foo.png)');
62 testInvalidCursorRule('url(file:///foo.png), url(file:///foo2.png)'); 63 testInvalidCursorRule('url(file:///foo.png), url(file:///foo2.png)');
63 testInvalidCursorRule('url(file:///foo.png) 12'); 64 testInvalidCursorRule('url(file:///foo.png) 12');
64 testInvalidCursorRule('url(file:///foo.png) 12 3 5'); 65 testInvalidCursorRule('url(file:///foo.png) 12 3 5');
65 testInvalidCursorRule('url(file:///foo.png) x y'); 66 testInvalidCursorRule('url(file:///foo.png) x y');
66 testInvalidCursorRule('url(file:///foo.png) auto'); 67 testInvalidCursorRule('url(file:///foo.png) auto');
67 68
68 successfullyParsed = true; 69 successfullyParsed = true;
69 </script> 70 </script>
70 <script src="../js/resources/js-test-post.js"></script> 71 <script src="../js/resources/js-test-post.js"></script>
71 </body> 72 </body>
72 </html> 73 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/cursor-parsing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698