<!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>
