Skip to content

font-size-adjust does not only affect fallback font #39367

@matklad

Description

@matklad

MDN URL

https://developer.mozilla.org/en-US/docs/Web/CSS/font-size-adjust

What specific section or headline is this issue about?

The entire page

What information was incorrect, unhelpful, or incomplete?

The docs talk about font fallback and make it sound like font-size-adjust applies only to fallback font:

ex-height
Uses the ratio of x-height (height of lowercase "x" in a font) to font size (aspect value) to adjust the fallback font size.

As far as I understand, this is incorrect. font-size-adjust applies to any font, fallback or not. font fallback is completely unrelated here. It just one motivation to use the feature, but there are others. For example, I might want to normalize x-height between normal font and monospaced font for code snippets.

What did you expect to see?

Docs do not incorrectly state that font-size-adjust kicks in only for fallback fonts.

Docs provide other motivation for usage besides font fallback.

Do you have any supporting links, references, or citations?

No response

Do you have anything more you want to share?

No response

MDN metadata

Page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:CSSCascading Style Sheets docsgoal: accuracy(Experimental label) Issues about inaccurate/incorrect content.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions