You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
content="Tests that run-ins don't run in if they have dynamically
inserted child inlines containing blocks."/>
<style type="text/css"><![CDATA[
div { display: block; }
.run-in { display: run-in; font-weight: bold }
#target { border: 2px solid black; }
]]></style>
<script type="text/javascript"><![CDATA[
function flushLayout(elt) {
elt.offsetWidth; /* Just undefined on non-elements, but that's ok */
for (var i = 0; i < elt.childNodes.length; ++i) {
flushLayout(elt.childNodes[i]);
}
}
window.onload = function() {
flushLayout(document.documentElement);
var s = document.createElement("span");
s.appendChild(document.createElement("div"));
document.getElementById("r").appendChild(s);
}
]]></script>
</head>
<body>
<div id="r" class="run-in">Run-in header</div>
<div>Some text.</div>
<div id="target">Start of block. The run-in header should NOT be inside the border around this block; it should be on a line by itself before the line containing "Some text".</div>