Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / gestures / gesture-tapHighlight-2-overflow-div-composited-outer-scroll-inner.html
blob213a8c8a0eba3ecdfde2425ec5e08b57ecdd67e0
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="position: relative; left: 10px; top: 10px"></div>
9 <div id="outerDiv" style="position: relative; left: 10px; top: 40px; width: 300px; height: 150px; overflow-y: scroll; overflow-x: scroll;">
10 <div style="transform: translateZ(0)">
11 <div id="targetDiv" style="position: relative; left: 10px; top: i10px; width: 200px; height: 100px; overflow-y: scroll; overflow-x: scroll;">
12 <a href="">Link 1</a><br>
13 <a href="">Link 2</a><br>
14 <a href="">Link 3</a><br>
15 <a href="" id="targetLink" class="opaqueHighlight">Target Link.</a><br>
16 <a href="">Link 4</a><br>
17 <a href="">Link 5</a><br>
18 </div>
19 <a href="">Link 6</a><br>
20 <a href="">Link 7</a><br>
21 <a href="">Link 8</a><br>
22 <a href="">Link 9</a><br>
23 </div></div>
24 <div style="position: relative; left: 10px; top: 80px">
25 This test is successful if "Target Link" above is covered in a green rectangle with square corners.
26 </div>
27 <script>
28 function runTest() {
29 useMockHighlight();
30 var clientRect = document.getElementById('targetLink').getBoundingClientRect();
31 x = (clientRect.left + clientRect.right) / 2;
32 y = (clientRect.top + clientRect.bottom) / 2;
33 if (window.testRunner) {
34 testRunner.dumpAsTextWithPixelResults();
35 testRunner.waitUntilDone();
38 if (window.eventSender) {
39 eventSender.gestureShowPress(x, y);
40 document.getElementById('targetDiv').scrollTop += 20;
41 window.setTimeout(function() { window.testRunner.notifyDone(); }, 0);
42 } else {
43 debug("This test requires DumpRenderTree.");
46 </script>
47 </script>
48 </body>
49 </html>