Bug 275401 - Combining mark is not drawn with CSS position:absolute
Summary: Combining mark is not drawn with CSS position:absolute
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: Safari 17
Hardware: Unspecified macOS 14
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-06-12 08:14 PDT by Leon
Modified: 2024-06-15 17:37 PDT (History)
8 users (show)

See Also:


Attachments
demonstration of combining mark not being drawn (1.86 KB, application/zip)
2024-06-12 08:14 PDT, Leon
no flags Details
Patch (5.20 KB, patch)
2024-06-14 21:29 PDT, zalan
no flags Details | Formatted Diff | Diff
Patch (5.52 KB, patch)
2024-06-15 06:03 PDT, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Leon 2024-06-12 08:14:57 PDT
Created attachment 471660 [details]
demonstration of combining mark not being drawn

Safari is not drawing the Combining Long Solidus Overlay character in this font in some situations, such as in the attached demo.

It is drawn in other browsers.
Comment 1 Alexey Proskuryakov 2024-06-12 19:27:51 PDT
Disabling IFC feature fixes this.
Comment 2 zalan 2024-06-12 20:42:05 PDT
This is caused by a paint optimization we have in IFC.
The character is measured to be 0px wide (glyph has 0 advance width) and since it's the only content of the out-of-flow box, the box itself ends up being 0px wide too (see shrink-to-fit sizing) and we (erroneously) decide to not paint it -even though there's glyph overflow. (among other things, decoration (e.g. border) throws us off of this "fast" codepath)
Comment 3 Radar WebKit Bug Importer 2024-06-12 20:42:32 PDT
<rdar://problem/129732893>
Comment 4 zalan 2024-06-14 21:29:15 PDT
Created attachment 471682 [details]
Patch
Comment 5 zalan 2024-06-15 06:03:10 PDT
Created attachment 471685 [details]
Patch
Comment 6 EWS 2024-06-15 17:37:05 PDT
Committed 280057@main (8789afc340e4): <https://commits.webkit.org/280057@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 471685 [details].