-
Notifications
You must be signed in to change notification settings - Fork 717
[css-fonts] Clarify font-optical-sizing behaviour under size-adjust #6190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I agree this makes sense, although I note that the current Gecko implementation fails this test, because it sets 'opsz' based on the computed font size -- so that'll need to be fixed. (In practice, I think most use cases for This also prompted me to wonder how optical sizing interacts with |
Thanks for your feedback, Jonathan.
We're currently not shipping |
The CSS Working Group just discussed
The full IRC log of that discussion<fantasai> Topic: [css-fonts] Clarify font-optical-sizing behaviour under size-adjust #6190<fantasai> github: https://github.com//issues/6190 <Rossen__> github: https://github.com//issues/6190 <fantasai> chrishtr: Question of size-adjust interaction with font-optical-sizing <fantasai> chrishtr: The proposed resolution is to use font-optical-sizing of the used font size <fantasai> myles: of course <fantasai> RESOLVED: font-optical-sizing: auto references the used font-size, accounting for 'size-adjust' and 'font-size-adjust' |
In
web-platform-tests/wpt#28399
I made a ref-test ensuring that
font-optical-sizing: auto
behaves according to the adjusted / resulting font-size undersize-adjust
, pending review.Since the wording for
size-adjust
says:And
font-optical-sizing: auto
says:we may want to clarify that the applied optical sizing value should be based on the resulting/adjusted/displayed font-size, not on the computed font size, in order to avoid confusion?
I believe the behaviour as tested in the new test makes sense as the glyph size is changed by size-adjust, and the scaled glyphs should then be rendered with the scaled/new optical size value. Or in other words, the glyph is displayed larger/smaller, and so should its optical sizing value be adjusted accordingly.
The text was updated successfully, but these errors were encountered: