[Webkit-unassigned] [Bug 230339] tab width is computed incorrectly for inline elements with font changes

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 28 08:02:49 PDT 2023


--- Comment #6 from zalan <zalan at apple.com> ---
(In reply to Myles C. Maxfield from comment #3)
> I wonder why... ��
It's because tab width is resolved against the current FontCascade and not what the (nearest) block container specifies.
e.g. <div style="tab-size: 10; font-size: 100px;"><span style="font-size: 1px">
In WidthIterator we use the [span]'s font to resolve the tab-size value of 10. At WidthIterator we don't have the context of containing blocks we just have a font (whatever the inline box has) and the specified tab-size value.

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/20230928/250fed5a/attachment-0001.htm>

More information about the webkit-unassigned mailing list