Skip to content

[css-fonts-4] Which type of font family names are system font names? #9292

@cdoublev

Description

@cdoublev

Are they generic family names?

There are two types of font family names:

  • <family-name> [...]
  • <generic-family> [...]

https://drafts.csswg.org/css-fonts-4/#font-family-prop

Or a separate type? About <family-name># in the prelude of @font-feature-values:

[...] rules that include generic or system fonts in the list of font families are syntax errors

https://drafts.csswg.org/css-fonts-4/#font-feature-values-syntax

FF currently accepts @font-feature-values caption {} whereas caption is a system font, probably because it wants a <family-name> that does not match <generic-family>, which does not explicitly include system font names.


aside

font-family: caption is valid, but it has no effect, therefore it maybe a bit misleading to say this:

That is why this property is "almost" a shorthand property: system fonts can only be specified with this property, not with font-family itself

https://drafts.csswg.org/css-fonts-4/#font-prop

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