Skip to content

[css-fonts] Do generic fonts resolve to a single font face value? #1736

@gsnedders

Description

@gsnedders

See https://drafts.csswg.org/css-fonts-4/#generic-font-families and https://drafts.csswg.org/css-fonts-4/#font-matching-algorithm

Are:

  • <p style='font-face: serif' lang='en'>Lorem ipsum dolor sit amet</p>
  • <p style='font-face: serif' lang='jp'>Lorem ipsum dolor sit amet</p>

Guaranteed to render the same? The spec seems to imply, without directly stating, in various places that the generic font is a specific, probably user-specifiable font-face, which implies that they should. This is, I believe, not true in any browser: a Latin font is selected for the former, a Japanese font for the latter.

(Ref web-platform-tests/wpt#6926 which made me realise this is unspecified behaviour.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions