3 This test verifies that a fixed position element inside an iframe paints when
4 it comes into view due to the iframe increasing in size.
6 If this test passes, you should see a green square.
11 #iframe-containing-fixed-position-element {
18 <script src=
"../../resources/run-after-layout-and-paint.js"></script>
20 if (window
.testRunner
)
21 testRunner
.waitUntilDone();
24 window
.internals
.settings
.setPreferCompositingToLCDTextEnabled(true);
28 // Initially, the fixed position element in the iframe will not
29 // paint because the iframe has zero height.
30 runAfterLayoutAndPaint(function() {
31 // Give the iframe a non-zero height. The fixed position element
32 // inside the iframe should paint now.
33 var iframeElement
= document
.getElementById("iframe-containing-fixed-position-element");
34 iframeElement
.style
.height
= "100px";
36 if (window
.testRunner
)
37 testRunner
.notifyDone();
42 <body onload=
"runTest()">
43 <iframe id=
"iframe-containing-fixed-position-element" src=
"resources/subframe-with-fixed-position-element.html"></iframe>