W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2019

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

From: fireattack via GitHub <sysbot+gh@w3.org>
Date: Wed, 11 Dec 2019 23:06:20 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-564773492-1576105578-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:57 UTC