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

Re: [csswg-drafts] [css-fonts] system-ui-serif, system-ui-monospaced, and system-ui-rounded (#4107)

From: Christoph Päper via GitHub <sysbot+gh@w3.org>
Date: Thu, 29 Aug 2019 05:05:56 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-526024096-1567055155-sysbot+gh@w3.org>
@frivoal is right, adaptive font keywords alone would not be enough to mimic system GUIs. The deprecation of system color keywords and the insufficiency of `font` role keywords are further indications that it is hard to provide an appropriate mechanism that works well across platforms. Authors would need to either know or access various lengths, for instance, as well. [css-env] specifies only a handful of those yet. I now strongly believe that environment variables (our rather constants) are the proper place for all of this, because (while itʼs possible to maintain for font or color names only) we donʼt want to add keywords for all user interface lengths to all the properties they might be used with. A different syntax should also signal to authors that these fonts must not be used like others. 

TLDR: Use `env()` for this! 

GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4107#issuecomment-526024096 using your GitHub account
Received on Thursday, 29 August 2019 05:05:59 UTC

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