| <style type="text/css" media="screen"> |
| border: 10px solid black; |
| -webkit-box-shadow: 0 0 20px black; |
| -webkit-transform: translateZ(0); |
| background-color: rgba(0, 0, 0, 0.2); |
| <script type="text/javascript" charset="utf-8"> |
| testRunner.waitUntilDone(); |
| document.getElementById('parent-iframe').contentDocument.body.offsetWidth; // work around bug 41999. |
| testRunner.displayAndTrackRepaints(); |
| document.getElementById('layers').innerText = window.internals.layerTreeAsText(document); |
| <!-- Test with already-composited iframe, and iframe contents becoming composited. --> |
| <iframe id="parent-iframe" src="resources/enter-compositing-subframe.html"></iframe> |
| <pre id="layers">Layer tree appears here in DRT.</pre> |