Bug 227353 - Font optical sizing is broken when set to default value
Summary: Font optical sizing is broken when set to default value
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 14
Hardware: Mac (Intel) macOS 11
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-06-24 08:37 PDT by Ernst
Modified: 2023-07-25 01:26 PDT (History)
5 users (show)

See Also:


Attachments
test case (1.98 KB, text/html)
2021-06-24 08:37 PDT, Ernst
no flags Details
screenshot documenting the issue (372.25 KB, image/png)
2021-06-24 08:40 PDT, Ernst
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ernst 2021-06-24 08:37:16 PDT
Created attachment 432167 [details]
test case

When setting the `opsz` axis in a variable font to the default value, it gets sized incorrectly.

Attached is an example where Source Sans (with its default opsz value of 20) is used as a variable font, and for testing purposes the optical size is set to increasing values. Notice the wrong jump when set to 20, which is the default (nearby values like 19.999 and 20.001 work correctly). Firefox and Chrome work correctly.
Comment 1 Ernst 2021-06-24 08:40:36 PDT
Created attachment 432168 [details]
screenshot documenting the issue
Comment 2 Radar WebKit Bug Importer 2021-07-01 08:38:16 PDT
<rdar://problem/80026031>
Comment 3 Sam Sneddon [:gsnedders] 2021-08-04 09:16:11 PDT
This appears not to reproduce in macOS 12 (but does reproduce with STP 128 on macOS 11).
Comment 4 Ahmad Saleem 2023-02-20 15:21:56 PST
@Myles - will it be fixed by your recent work around this?
Comment 5 Ahmad Saleem 2023-07-13 16:26:27 PDT
Safari 16.5.1 seems to have fixed it but Safari Technology Preview 174 and WebKit ToT seems to have it as broken. Confused!
Comment 6 zalan 2023-07-21 07:14:57 PDT
This has regressed at 264750@main