[Webkit-unassigned] [Bug 254595] display: flex element not ignore font (content) like as other browser engines.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Mar 28 21:04:21 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=254595
--- Comment #4 from zalan <zalan at apple.com> ---
We construct the following tree structure for the flexbox:
B-------- -- DIV RenderFlexibleBox at (0,0) size 1185x20
B---YG--- -- RenderBlock at (0,0) size 21.61x20
I-------- -- #text RenderText ("PASS if no")
BA----L-- -- DIV RenderBlock at (8,22) size 21.61x14
I-------- -- #text RenderText ("gap.")
(note that the incorrectly positioned out-of-flow box is nested inside the anon flex item)
When the incorrectly positioned out-of-flow box starts as:
position: absolute;
(or use the "recover case" above at comment #3)
we've got the following tree structure for the flexbox:
B-------- -- DIV RenderFlexibleBox at (0,0) size 1185x20
B-------- -- DIV RenderBlock at (0,0) size 21.61x20
I-------- -- #text RenderText ("PASS if no")
BA----L-- -- DIV RenderBlock at (8,8) size 21.61x14
I-------- -- #text RenderText ("gap.")
(note that now the out-of-flow box is a sibling to the flex item)
We also seem to produce the same structure when the text content ("Pass if...") is nested inside a block container (<div>PASS if no</div>)
It looks like the incorrect rendering is actually caused by this incorrect tree structure.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230329/5e26076b/attachment.htm>
More information about the webkit-unassigned
mailing list