[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 07:53:04 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=47618
Anne van Kesteren <annevk at annevk.nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|DOM |Layout and Rendering
--- Comment #3 from Anne van Kesteren <annevk at annevk.nl> ---
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.
--
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/c0e58165/attachment-0001.htm>
More information about the webkit-unassigned
mailing list