<!DOCTYPE html>
<style>
iframe {
float: left;
height: 100%;
width: 100%;
}
</style>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<iframe id="target" name="content" srcdoc="<div style='width: 300px; height:400px; background: blue'></div>" style="height: 119px;"></iframe>
<script>
if (window.internals)
internals.settings.setPreferCompositingToLCDTextEnabled(true);
onload = function() {
runAfterLayoutAndPaint(function() {
target.style.height = "600px";
}, true);
}
</script>