Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / gestures / gesture-tapHighlight-simple-div-boxshadow-absolute.html
bloba5c40b1f468d2514e81d2435367ab21cc4611ecc
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
5 <script src="resources/link-highlight-helper.js"></script>
6 </head>
7 <body onload="runTest();">
8 <div style="top: 10px; left: 10px; transform: translateZ(0);">
9 <div class="opaqueHighlight" id="targetDiv" style="position: absolute; left: 50px; top: 50px; width: 50px; height: 50px; box-shadow: 0px 4px 23px 5px rgba(0, 0, 0, 0.2); border-style: solid; border-width: 2px; cursor: Pointer">
10 <br><center>Target</center><br>
11 </div>
12 </div>
13 <div style="position: absolute; left: 10px; top: 250px; transform: translateZ(0);">
14 This test is successful if the box labelled "Target" has a green rectangle centered on it.
15 </div>
16 <script>
17 function runTest() {
18 useMockHighlight();
19 var clientRect = document.getElementById('targetDiv').getBoundingClientRect();
20 x = (clientRect.left + clientRect.right) / 2;
21 y = (clientRect.top + clientRect.bottom) / 2;
22 if (window.testRunner) {
23 testRunner.dumpAsTextWithPixelResults();
24 testRunner.waitUntilDone();
27 if (window.eventSender) {
28 eventSender.gestureShowPress(x, y);
29 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
30 } else {
31 debug("This test requires DumpRenderTree.");
34 </script>
35 </body>
36 </html>