Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / gestures / gesture-tapHighlight-simple.html
blob31c4694e23bb6b6449eef134b5202ae3df24f079
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 <script src="resources/link-highlight-helper.js"></script>
6 <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
7 </head>
8 <body onload="runTest();">
9 <div style="transform: translateZ(0); position: relative; left: 10; top: 40">
10 <a class="opaqueHighlight" href="" id="targetLink">Target Link.</a>
11 </div>
12 <div style="position: relative; left: 10; top: 70">
13 This test is successful if "Target Link" above is covered in a green rectangle with square corners.
14 </div>
15 <script>
16 function runTest() {
17 useMockHighlight();
19 var clientRect = document.getElementById('targetLink').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 </script>
36 </body>
37 </html>