blob: f587fde4958893c7549eea302f46d470199b044f [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
iframe {
margin: 20px;
height: 200px;
width: 200px;
border: 1px solid black;
}
.composited {
-webkit-transform: translateZ(0);
}
</style>
<script type="text/javascript" charset="utf-8">
function doTest()
{
if (window.testRunner)
testRunner.displayAndTrackRepaints();
document.getElementById('iframe').className = 'composited';
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<!-- Test with already-composited iframe contents, and iframe itself composited. -->
<!-- You should see a green square, no red. -->
<iframe id="iframe" scrolling="no" src="resources/red-green-subframe.html"></iframe>
</body>
</html>