Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / compositing / iframes / iframe-in-composited-layer.html
1 <!--
2     This is a test for
3     <i><a href="https://bugs.webkit.org/show_bug.cgi?id=38427">https://bugs.webkit.org/show_bug.cgi?id=38427</a>
4     <rdar://problem/7932072> Iframes in composited layers don&rsquo;t repaint correctly (affects Yahoo! Mail with Flash Player 10.1)</i>.
5 <-->
6 <div style="transform: translateZ(0); width: 400px; height: 400px; background-color: lightyellow;">
7     <iframe id="frame" style="width: 380px; height: 380px; border: solid; margin: 7px" src="data:text/html,
8         <html style='height: 900px; width: 900px; position: relative;'>
9             <body>
10                 <div style='position: absolute; width: 100px; height: 100px; background-color: red; left: 0; top: 0;'></div>
11                 <div style='position: absolute; width: 100px; height: 100px; background-color: green; right: 0; bottom: 0;'></div>
12             </body>
13         </html>
14     "></iframe>
15 </div>
16 <script>
17     if (window.testRunner)
18         testRunner.waitUntilDone();
19
20     setTimeout(function() {
21         document.getElementById("frame").contentWindow.scrollTo(600, 600);
22         if (window.testRunner)
23             testRunner.notifyDone();
24     }, 200);
25 </script>