<!DOCTYPE html> | |
<script> | |
window.addEventListener("message", (event) => { | |
if (testRunner) | |
testRunner.notifyDone(); | |
}); | |
window.onload = () => { | |
if (testRunner) | |
testRunner.waitUntilDone(); | |
var ifr = document.getElementById('ifr'); | |
ifr.scrolling = 'no'; | |
ifr.marginWidth = '50'; | |
ifr.marginHeight = '100'; | |
ifr.contentWindow.postMessage({}, '*'); | |
}; | |
</script> | |
<iframe id="ifr" scrolling="yes" style="width:200px;height:200px;" | |
src="http://localhost:8000/misc/resources/iframe-big.html"> | |
</iframe> |