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

Thanks for cleaning that part up, but the question remains:

Should you be able to (deliberately) override generic family keywords using `@font-face`? This is the part that I feel is not clear in the draft.

----
Consider the following use case:

Remote (website) delivers a "bad font" in CSS rule property: 

`h1 { font-family: "badFont"; }.` Users can override it locally with 
```css
@font-face {
    font-family: badFont;
    src: local("goodFont");
}
```

Now, if the remote delivers system-ui `h1 { font-family: system-ui; }.` but it's undesirable (#3658), the user now have no way to override that property.


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

Received on Wednesday, 11 December 2019 23:06:21 UTC