- From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
- Date: Tue, 14 May 2019 18:23:06 +0000
- To: public-css-archive@w3.org
@clshortfuse Apologies, I was clearly confusing the apple system font keyword with the font family keywords used on other systems like Android. So, `font: -apple-system-body` does work the same as `font: caption` and the other shorthand keywords. That's definitely something that could be standardized, if there's demand for it.
For reference, the current shorthand font keywords in the spec are:
<blockquote>
<dl>
<dt><strong>caption</strong>
</dt><dd>The font used for captioned controls (e.g., buttons, drop-downs,
etc.).
</dd><dt><strong>icon</strong>
</dt><dd>The font used to label icons.
</dd><dt><strong>menu</strong>
</dt><dd>The font used in menus (e.g., dropdown menus and menu lists).
</dd><dt><strong>message-box</strong>
</dt><dd>The font used in dialog boxes.
</dd><dt><strong>small-caption</strong>
</dt><dd>The font used for labeling small controls.
</dd><dt><strong>status-bar</strong>
</dt><dd>The font used in window status bars.
</dd></dl>
</blockquote>
So they're focused on form elements, but don't cover general text content. Adding a `system-body` or `body-text` keyword does make sense.
But I don't see how that addresses the general problem of setting font-size according to the user preference, without an OS-themed font family. Are you suggesting that authors use `font: system; font-family: my-web-font;`, to indirectly set the font size & then reset it? Or are you suggesting that separate mechanisms are required?
--
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3708#issuecomment-492352740 using your GitHub account
Received on Tuesday, 14 May 2019 18:23:08 UTC