Chromium Code Reviews

Side by Side Diff: LayoutTests/compositing/gestures/gesture-tapHighlight-simple-cancel.html

Issue 338543003: Gesture event hit test refactoring and reduction (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Esprehn CR feedback Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <script src="../../resources/run-after-display.js"></script> 5 <script src="../../resources/run-after-display.js"></script>
6 <style>
7 /* Don't test active state. Technically sending a second showPress before
8 the first has been completed is illegal, so whether or not blink clears the
9 active state on the first node irrelevant.
10 */
11 a, a:active {
12 color: #00c;
13 }
14 </style>
6 </head> 15 </head>
7 <body onload="runTest();" onclick="doNothing();"> 16 <body onload="runTest();" onclick="doNothing();">
8 <div style="-webkit-transform: translateZ(0); position: relative; left: 10px; to p: 40px"> 17 <div style="-webkit-transform: translateZ(0); position: relative; left: 10px; to p: 40px">
9 <a href="" id="targetLink" style="-webkit-tap-highlight-color: rgba(0, 255, 0, 0 .5)">Target Link.</a> 18 <a href="" id="targetLink" style="-webkit-tap-highlight-color: rgba(0, 255, 0, 0 .5)">Target Link.</a>
10 </div> 19 </div>
11 <div style="position: relative; left: 10px; top: 70px"> 20 <div style="position: relative; left: 10px; top: 70px">
12 This test is successful if no link highlight appears (in particular, the entire viewport should remain unchanged, and the background 21 This test is successful if no link highlight appears (in particular, the entire viewport should remain unchanged, and the background
13 should be white and not grey). 22 should be white and not grey).
14 </div> 23 </div>
15 <script> 24 <script>
(...skipping 17 matching lines...)
33 testRunner.notifyDone(); 42 testRunner.notifyDone();
34 }); 43 });
35 } else { 44 } else {
36 debug("This test requires DumpRenderTree."); 45 debug("This test requires DumpRenderTree.");
37 } 46 }
38 } 47 }
39 </script> 48 </script>
40 </script> 49 </script>
41 </body> 50 </body>
42 </html> 51 </html>
OLDNEW

Powered by Google App Engine