| <!DOCTYPE html> |
| <html> |
| <head> |
| <script> |
| if (window.testRunner) { |
| testRunner.dumpAsText(); |
| testRunner.waitUntilDone(); |
| } |
| |
| function runTest() { |
| window.setTimeout(function() { |
| var testFrame = document.getElementById('pluginFrame'); |
| |
| testFrame.style.position = 'absolute'; |
| testFrame.style.padding = '10%'; |
| // Need to wait for compositing layers to be updated. |
| window.setTimeout(function() { |
| if (window.testRunner) { |
| testRunner.notifyDone(); |
| } |
| }, 0); |
| }, 0); |
| } |
| </script> |
| </head> |
| <body> |
| <p>PASS, if changing the iFrame's position attribute, while its content mandates layer composition, does not crash the browser.</p> |
| <iframe onload='runTest();' id='pluginFrame' src="resources/embed-tag-with-composition.html"></iframe> |
| </body> |
| </html> |