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

Side by Side Diff: LayoutTests/fast/css/invalid-cursor-property-crash.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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 function runTest() { 4 function runTest() {
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 7
8 var d = document.getElementById('theDiv'); 8 var d = document.getElementById('theDiv');
9 var style = document.defaultView.getComputedStyle(d, ''); 9 var style = document.defaultView.getComputedStyle(d, '');
10 10
11 if (style && style.cursor == 'url(' + document.location + '), auto') 11 if (style && style.cursor == 'auto')
12 document.getElementById('result').innerHTML = 'SUCCESS'; 12 document.getElementById('result').innerHTML = 'SUCCESS';
13 } 13 }
14 </script> 14 </script>
15 </head> 15 </head>
16 <body onload="runTest()"> 16 <body onload="runTest()">
17 <div id="theDiv" style="cursor: url()"> 17 <div id="theDiv" style="cursor: url()">
18 <div>This tests that the invalid cursor property value does not get applied. See Bug 11221.</div> 18 <div>This tests that the invalid cursor property value does not get applied. See Bug 11221.</div>
19 <div id="result">FAILURE</div> 19 <div id="result">FAILURE</div>
20 </body> 20 </body>
21 </html> 21 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/cursor-parsing-quirks-expected.txt ('k') | LayoutTests/fast/css/uri-token-parsing.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698