summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/iframes/iframe-in-composited-layer.html
blob: e711777d6b8e4143b3d345fa41eccd2bd99939ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!--
    This is a test for
    <i><a href="https://bugs.webkit.org/show_bug.cgi?id=38427">https://bugs.webkit.org/show_bug.cgi?id=38427</a>
    <rdar://problem/7932072> Iframes in composited layers don&rsquo;t repaint correctly (affects Yahoo! Mail with Flash Player 10.1)</i>.
<-->
<script>
    if (window.testRunner)
        testRunner.waitUntilDone();

    function runTest() {
        document.getElementById("frame").contentWindow.scrollTo(600, 600);
        if (window.testRunner)
            testRunner.notifyDone();
    }
</script>

<div style="transform: translateZ(0); width: 400px; height: 400px; background-color: lightyellow;">
    <iframe id="frame"  onload="runTest()" style="width: 380px; height: 380px; border: solid; margin: 7px" src="data:text/html,
        <html style='height: 900px; width: 900px; position: relative;'>
            <body>
                <div style='position: absolute; width: 100px; height: 100px; background-color: red; left: 0; top: 0;'></div>
                <div style='position: absolute; width: 100px; height: 100px; background-color: green; right: 0; bottom: 0;'></div>
            </body>
        </html>
    "></iframe>
</div>