blob: 4fd510ad7af13fb695141abd74e82b8c1d7030b1 [file] [log] [blame]
<!DOCTYPE html>
<meta name="viewport" content="width=800">
body {
width: 800px;
margin: 0;
overflow-y: hidden;
<script src="resources/autosizingTest.js"></script>
Test for this test passes if it does not crash.
// Create an iframe with no content (html, body) except for the document.
// Note: splitting the end script tag is requried to prevent closing the script we are in.
document.body.innerHTML += "<iframe src='data:text/html,<body><script>document.removeChild(document.body.parentElement)</s" + "cript>'></body></iframe>";
var forceLayout = document.getElementsByTagName('iframe')[0].offsetWidth;
if (window.testRunner)