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