-
Notifications
You must be signed in to change notification settings - Fork 756
Description
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-familyitself