[Webkit-unassigned] [Bug 230339] New: tab width is computed incorrectly for inline elements with font changes
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 16 04:00:10 PDT 2021
https://bugs.webkit.org/show_bug.cgi?id=230339
Bug ID: 230339
Summary: tab width is computed incorrectly for inline elements
with font changes
Product: WebKit
Version: Safari 14
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jfkthame at gmail.com
CC: bfulgham at webkit.org, simon.fraser at apple.com,
zalan at apple.com
The CSS spec (https://drafts.csswg.org/css-text-3/#tab-size-property) for tab-size is clear that
> A <number> represents the measure as a multiple of the advance width of the space character (U+0020) of the nearest block container ancestor of the preserved tab,
but webkit appears to be using the advance width of the inline element's own space character, not the block container's.
See testcase at https://codepen.io/jfkthame/pen/JjJMoqN.
Firefox renders this correctly per spec.
--
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/20210916/3cbd736a/attachment.htm>
More information about the webkit-unassigned
mailing list