[Webkit-unassigned] [Bug 249726] FontSelectionValue is not able to store 3.14

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 21 10:12:28 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=249726

--- Comment #2 from Chris Dumez <cdumez at apple.com> ---
Seems the class uses a int16_t to store the float, after multiplying by fractionalEntropy (which is 4). Then when requesting the float back, it just divides the int16_t by 4. We end up with a precision of 0.25% as a result.

So if I store 3.14%, I get 3% back. But if I store 3.25%, I get 3.25% back.

This loss in precision doesn't match other browsers and is Web-observable since computed values are exposed to the Web.

-- 
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/20221221/e7ccad82/attachment.htm>


More information about the webkit-unassigned mailing list