Skip to content

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

@wjhe1016

Description

@wjhe1016

Currently chromium is having issue with when font-variation-settings: "ital" 1 and font-style: italic, font-style: oblique, <i>HTML element.
See bug

According to CSS spec 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 (passed the CQ dry run).

This image below is before the fix in this test:

Image

After (in progress)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions