[Webkit-unassigned] [Bug 47618] offsetHeight and offsetWidth of inline box wrapping a block box is 0

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Dec 19 08:00:35 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=47618

--- Comment #4 from zalan <zalan at apple.com> ---
(In reply to Anne van Kesteren from comment #3)
> I briefly looked into this.
> 
> RenderInline uses linesBoundingBox() for offset size calculations.
> 
> However, for <span><div>test</div></span> the span is not considered to have
> hasContent() so LineLayout::enclosingBorderBoxRectFor() returns a 0-rect. If
> I remove the hasContent() check it returns what appears to be the correct
> height, but the width is still 0. And who knows what side effects removing
> the hasContent() check might have.
> 
> As such this seems like something best tackled by the layout team.

<span><div>test</div></span> creates continuation which probably confuses enclosing logic somewhere.

-- 
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/20231219/6163a543/attachment.htm>


More information about the webkit-unassigned mailing list