Created attachment 56482 [details] testcase Layout of Code like <span style="float:left;"><div>..</div</span> fails if surrounded with a <p>: <p><span style="float:left"><div>..</div</span></p> Without <p> it display as intend but with <p> an additional line break is added.
Reduction is: <html> <body> <p><span style="float: left;"><div style="background: green;">Block</div></span></p> </body> </html> For some reason, this gets the RenderTree: RenderBlock {HTML} at (0,0) size 800x600 RenderBody {BODY} at (8,8) size 784x576 RenderBlock {P} at (0,0) size 784x0 RenderBlock (floating) {SPAN} at (0,0) size 0x0 RenderBlock {DIV} at (0,0) size 784x20 [bgcolor=#008000] RenderText {#text} at (0,0) size 36x19 text run at (0,0) width 36: "Block" RenderBlock {P} at (0,36) size 784x0 Clearly the 'RenderBlock {DIV}' should not have RenderBody as its parent. So may well be a parsing issue: Eric, any clues where to start looking?
> Clearly the 'RenderBlock {DIV}' should not have RenderBody as its parent. Why do you say that? The <div> closes the <p>.
(In reply to comment #2) > > Clearly the 'RenderBlock {DIV}' should not have RenderBody as its parent. > > Why do you say that? The <div> closes the <p>. Ah OK - thanks. I'm going to close this as invalid in that case.