w3c / w3c/csswg-drafts

[css-fonts] Should `font-style: oblique 14deg` serialize as `font-style: oblique`?

Open
#11,633 4 comments 0 reactions 1 assignee View on GitHub

@svgeesus is already working on this.

Since Apr 17, 2026.

css-fonts-4
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

Following on from the discussion in https://github.com/w3c/csswg-drafts/issues/11430, the additional question of the serialization of font-style: oblique 14deg was raised.

Following the rule of "shortest serialization", there is an argument to made that font-style: oblique 14deg should serialize as font-style: oblique, as the spec states that font-style: oblique (with no angle given) should use an angle of 14 degrees:

[...] The lack of an <angle> represents 14deg. (Note that a font might internally provide its own mapping for "oblique", but the mapping within the font is disregarded.) [...] (https://drafts.csswg.org/css-fonts-4/#font-style-prop)

Whether or not this argument holds, the spec should be explicit if this behavior is expected.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.