summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/gestures/gesture-tapHighlight-2-iframe-scrolled-outer-expected.html
blob: bcd819e510a848324fb4f72b44f7cb3325dcb532 (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>
</head>
<body onLoad="runTest();">
<iframe id="nestingFrame" src="resources/1-nested-frame-noncomposited-expected.html" style="position: relative; left: 10px; top: 10px; width: 450px; 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 outer frame is partially scrolled.
</div>
<script>
function runTest() {
    var nestingFrame = document.getElementById('nestingFrame');
    nestingFrame.contentWindow.scrollTo(0, 20);

    if (window.testRunner)
        testRunner.dumpAsTextWithPixelResults();
}
</script>
</body>
</html>