Skip to content

[css-fonts-4] Use the ital axis when matching font-style: italic - #14412

Merged
svgeesus merged 1 commit into
w3c:mainfrom
hjanuschka:ital-axis-matching
Aug 31, 2026
Merged

[css-fonts-4] Use the ital axis when matching font-style: italic#14412
svgeesus merged 1 commit into
w3c:mainfrom
hjanuschka:ital-axis-matching

Conversation

@hjanuschka

@hjanuschka hjanuschka commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Closes #12836.

As discussed in #12836, the Font Matching Algorithm only has explicit variable-font instantiation text for the slnt axis in the oblique branches, while the font-style property definition already states that "the ital variation with a value of 1 is used to implement the italic values".

This change:

  • Adds a step to the italic branch of the matching algorithm, mirroring the existing slnt sentence: "For variable fonts with an ital axis, a match is created by setting the ital value to 1."
  • Clarifies in both oblique branches that the ital axis is not used to satisfy an oblique request (per @jfkthame's point in the issue, which @drott supported).

Consequence for fonts exposing both slnt and ital axes: the italic keyword sets ital to 1 (leaving slnt at its default), and oblique sets slnt (leaving ital at 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).

…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".
@w3cbot

w3cbot commented Aug 31, 2026

Copy link
Copy Markdown

svgeesus marked as non substantive for IPR from ash-nazg.

@svgeesus
svgeesus merged commit 5d2c117 into w3c:main Aug 31, 2026
2 checks passed
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.

[CSS-Font] Fixing font-variation-settings: "ital" 1 with font style of italic and oblique

3 participants