-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
fonts: Apply variations for font-weight, font-stretch
#40867
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
Conversation
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
| [font-variation-settings-descriptor-03.html] | ||
| expected: FAIL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two tests fail due to the way we treat font-optical-size:auto. Apparently other browsers don't add opsz if its already present in the font-variation-settings property.
| .copied() | ||
| .for_each(&mut add_variation); | ||
|
|
||
| // Step 9. Font variations implied by the value of the font-optical-sizing property are applied. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Step 9 was in the wrong place previously (steps are in reverse order because variations are listed in ascending order of priority)
yezhizhen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well explained!
font-styleis not included yet because it requires us to have information about the selected font, which is not possible yet.Testing: New tests start to pass
Fixes #37236
Part of #38800