Skip to content

Conversation

@simonwuelker
Copy link
Contributor

font-style is 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

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>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 24, 2025
Comment on lines +1 to +2
[font-variation-settings-descriptor-03.html]
expected: FAIL
Copy link
Contributor Author

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.
Copy link
Contributor Author

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)

Copy link
Member

@yezhizhen yezhizhen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well explained!

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Nov 25, 2025
@TimvdLippe TimvdLippe added this pull request to the merge queue Nov 25, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 25, 2025
Merged via the queue into servo:main with commit 003b9b6 Nov 25, 2025
35 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong font weight on https://webengineshackfest.org/

4 participants