[csswg-drafts] Fixing font-variation-settings: "ital" 1 with font style of italic and oblique (#12836)

wjhe1016 has just created a new issue for https://github.com/w3c/csswg-drafts:

== Fixing font-variation-settings: "ital" 1 with font style of italic and oblique ==
Currently chromium is having issue with when `font-variation-settings: "ital" 1` and `font-style: italic`, `font-style: oblique`, `<i>HTML element`.
See [bug](https://issues.chromium.org/issues/40681464)

According to [CSS spec](https://drafts.csswg.org/css-fonts-4/#font-style-prop) If a variable font has an Italic (ital) axis, ital axis should be activated (turned to value "1") by the CSS `font-style:italic` or `font-style:oblique` and the html `<i>`. but currently in chromium is having issues with that. 

I uploaded a CL in chromium in [here](https://chromium-review.googlesource.com/c/chromium/src/+/6965375) (passed the CQ dry run).

This image below is before the fix in this [test](https://arrowtype.github.io/vf-slnt-test/index.html): 

<img width="1191" height="881" alt="Image" src="https://github.com/user-attachments/assets/89b8fb01-4818-4b78-a2f4-14ec7f13bb9d" />

This is image below is after the fix in this [test](https://arrowtype.github.io/vf-slnt-test/index.html):

<img width="1364" height="946" alt="Image" src="https://github.com/user-attachments/assets/521acbc4-55a7-4b84-8290-c883dff22f37" />

Since CSS spec is unclear on what should happen when `font-variation-settings: "ital" 1` and `font-style: oblique ±XXdeg`, I had made a proposal including in this [doc](https://docs.google.com/document/d/1qZ-sTeQVdj_A8Uumk3jD-8X99hTgQr2rZg_7OjD5oIY/edit?tab=t.atzh2c6s7i4m).
 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12836 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 20 September 2025 00:39:21 UTC