| Summary: | .measureText() returns TextMetrics object with rounded values for bounding box | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Andreas <andreas> | ||||||
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> | ||||||
| Status: | NEW --- | ||||||||
| Severity: | Normal | CC: | ahmad.saleem792, andreas, bfulgham, mmaxfield, sabouhallawa, simon.fraser, webkit-bug-importer, zalan | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | Safari 15 | ||||||||
| Hardware: | Mac (Intel) | ||||||||
| OS: | macOS 10.15 | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=250020 | ||||||||
| Attachments: |
|
||||||||
|
Description
Andreas
2022-05-08 01:34:18 PDT
Created attachment 459012 [details]
Test element
I think we have 'boundingBoxAscent' etc. in html/TextMetrics.h as 'float' but Chrome has it as 'double'. So changing it into 'double' might be solution. We have FIXME as well: https://github.com/WebKit/WebKit/blob/7b833e8e18ce1474a00504b49ff46757b96e1a83/Source/WebCore/html/TextMetrics.idl#L29 IDL + C++ side both need fixes. |