blob: eec4550715a061263c81590e187651ca202fac97 [file] [log] [blame]
<!--
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="will-change: transform; width: 400px; height: 400px; background-color: lightyellow;">
<iframe id="frame" onload="runTest()" style="width: 380px; height: 380px; border: solid; margin: 7px" srcdoc="
<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>