blob: 4adb9ef4759c5a74175edb8b348e4fc16e278165 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>This tests that float is positioned properly when it is next to an anonymous block.</title>
</head>
<body>
<span>foo</span>
<div id="nextSibling"></div>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
setTimeout(function() {
var floatDiv = document.createElement("div");
floatDiv.style.float = "right";
floatDiv.innerText = "bar";
document.body.insertBefore(floatDiv, document.getElementById("nextSibling"));
if (window.testRunner)
testRunner.notifyDone();
}, 0);
</script>
</body></html>