summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/gestures/gesture-tapHighlight-1-iframe-scrolled-expected.html
blob: 38ee5182727aa9873ecd32edeebcc08fee8605bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
<link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
</head>
<body onLoad="runTest();">
<iframe id="targetFrame" src="resources/1-frame-noncomposited-expected.html" style="position: relative; left: 10px; top: 10px; width: 400px; height: 150px;"></iframe>
<div style="position: relative; left: 10px; top: 20px; transform: translateZ(0);">
This test is successful if "Target Link" is covered by a green box with square corners,
and the frame is partially scrolled.
</div>
<script>
function runTest() {
    if (window.testRunner) {
        document.getElementById("targetFrame").contentWindow.scrollTo(0, 20);
        testRunner.dumpAsTextWithPixelResults();
    }
}
</script>
</body>
</html>