[css-fonts-4] Use the ital axis when matching font-style: italic - #14412
Merged
Conversation
…12836 In the font matching algorithm, mirror the existing slnt instantiation text for variable fonts: for font-style: italic, a match is created by setting the ital axis value to 1. Also clarify in both oblique branches that the ital axis is not used to satisfy an oblique request, matching the discussion in issue w3c#12836. This aligns the matching algorithm with the font-style property definition, which already states that "the ital variation with a value of 1 is used to implement the italic values".
svgeesus
approved these changes
Aug 31, 2026
|
svgeesus marked as non substantive for IPR from ash-nazg. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #12836.
As discussed in #12836, the Font Matching Algorithm only has explicit variable-font instantiation text for the
slntaxis in the oblique branches, while thefont-styleproperty definition already states that "theitalvariation with a value of 1 is used to implement the italic values".This change:
italicbranch of the matching algorithm, mirroring the existingslntsentence: "For variable fonts with an ital axis, a match is created by setting the ital value to 1."obliquebranches that theitalaxis is not used to satisfy an oblique request (per @jfkthame's point in the issue, which @drott supported).Consequence for fonts exposing both
slntanditalaxes: theitalickeyword setsitalto 1 (leavingslntat its default), andobliquesetsslnt(leavingitalat its default). This matches what Gecko ships today.Implementation interest: Gecko already behaves this way; Chromium implementation is prepared in https://chromium-review.googlesource.com/c/chromium/src/+/8179764 pending this spec clarification (Chromium bug: https://issues.chromium.org/issues/40681464).