Re: [csswg-drafts] [css-fonts] is it allowed for generic families like system-ui to be overridden by @font-face? (#4580)

From the spec chapter I linked to in my original comment:

> Any identifier which could be misinterpreted as a pre-defined keyword in the font-family value definition, or the CSS-wide keyword values, is not allowed.
>
> Note: this means that if you really have a font whose name is the same as one of the <generic-family> names, or the common-keywords|CSS-wide keyword values, it must be quoted.

This text is very clear that if you say `h1 { font-family: system-ui; }`, you will *always* get the browser built-in font, not a webfont. The only way to access a `@font-face { font-family: system-ui; ... }` is by writing `h1 { font-family: "system-ui"; }`. (And `font-family: "system-ui";` should *never* select the browser built-in, even if there's no webfont defined for that name.)

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4580#issuecomment-565220592 using your GitHub account

Received on Thursday, 12 December 2019 22:45:07 UTC