<!DOCTYPE HTML> | |
<p id="result">Test did not run</p> | |
<div style="-webkit-transform: scale(2);"> | |
<iframe id="target" style="width: 100px; height: 100px; border: none;"></iframe> | |
</div> | |
<script> | |
if (window.testRunner) | |
testRunner.dumpAsText(); | |
var target = document.getElementById("target"); | |
document.body.offsetTop; | |
document.getElementById("result").innerText = target.contentDocument.body.offsetWidth > 100 ? "FAIL" : "PASS"; | |
</script> |