<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - float:right not working consistently across page loads (Loading-related race condition?)"
href="https://bugs.webkit.org/show_bug.cgi?id=150271#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - float:right not working consistently across page loads (Loading-related race condition?)"
href="https://bugs.webkit.org/show_bug.cgi?id=150271">bug 150271</a>
from <span class="vcard"><a class="email" href="mailto:zalan@apple.com" title="zalan <zalan@apple.com>"> <span class="fn">zalan</span></a>
</span></b>
<pre>It seems to me that we don't properly clean up the tree after display:none is applied on the <div> in the middle.
(This is the output of a slightly modified test reduction with spans instead of buttons)
<span>foo</span><div class="hidden"></div><div class="collapseMenu"><span>bar</span>
Broken rendering
--AG--- -- RenderBlock (0.00, 0.00) (1491.00, 20.00) renderer->(0x12135df18)
------- -- RootInlineBox (0.00, 2.00) (20.22, 16.00) (0x122fbac78) renderer->(0x12135df18)
------- -- InlineTextBox (0.00, 2.00) (20.22, 16.00) (0x122fb23c0) run(0, 3) "foo"
------- -- SPAN RenderInline renderer->(0x120b73f70) node->(0x120b5dc98)
------- -- #text RenderText renderer->(0x120b50960) node->(0x120b4f370) length->(3) "foo"
----F-- -- DIV RenderBlock (1470.52, 20.00) (20.48, 20.00) renderer->(0x12135d8a0) node->(0x120b5dd68)
------- -- RootInlineBox (0.00, 2.00) (20.48, 16.00) (0x122fbad20) renderer->(0x12135d8a0)
------- -- InlineTextBox (0.00, 2.00) (20.48, 16.00) (0x122fb2420) run(0, 3) "bar"
------- -- SPAN RenderInline renderer->(0x120b49000) node->(0x120b5ddd0)
------- -- #text RenderText renderer->(0x120b50cc0) node->(0x120b4f3c0) length->(3) "bar"
Correct rendering:
------- -- RootInlineBox (0.00, 2.00) (20.22, 16.00) (0x11d7185e8) renderer->(0x12135df18)
------- -- InlineTextBox (0.00, 2.00) (20.22, 16.00) (0x117f1a900) run(0, 3) "foo"
------- -- SPAN RenderInline renderer->(0x11fbf5820) node->(0x11fbf5478)
------- -- #text RenderText renderer->(0x117f4b7e0) node->(0x122fd2910) length->(3) "foo"
----F-- -- DIV RenderBlock (1470.52, 0.00) (20.48, 20.00) renderer->(0x12135d398) node->(0x11fbf5548)
------- -- RootInlineBox (0.00, 2.00) (20.48, 16.00) (0x11d718540) renderer->(0x12135d398)
------- -- InlineTextBox (0.00, 2.00) (20.48, 16.00) (0x117f1a8a0) run(0, 3) "bar"
------- -- SPAN RenderInline renderer->(0x11fbf5888) node->(0x11fbf55b0)
------- -- #text RenderText renderer->(0x117f1a420) node->(0x122fd2960) length->(3) "bar"</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>