[csswg-drafts] [css-fonts-4] `system-ui` generic font keyword and lang attribute (#9518)

drott has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-fonts-4] `system-ui` generic font keyword and lang attribute ==
Spun off from:
https://github.com/web-platform-tests/interop/issues/499

This WPT query:
https://wpt.fyi/results/css/css-fonts?label=experimental&label=master&aligned&q=system

has tests
system-ui-ja-vs-zh.html
system-ui-ja.html 
system-ui-ur-vs-ar.html 
system-ui-zh.html

which are testing whether there's a difference for the system-ui font under differing lang attribute values. 

We don't see where that behavior is taken from in terms of spec text. 

The spec text itself is: https://www.w3.org/TR/css-fonts-4/#system-ui-def

> This generic font family lets text render with the default user interface font on the platform on which the UA is running. A cross-platform UA should use different fonts on its different supported platforms. The purpose of [system-ui](https://www.w3.org/TR/css-fonts-4/#valdef-font-family-system-ui) is to allow web content to integrate with the look and feel of the native OS.

Specifically 
> default user interface font on the platform on which the UA
reads to us more like it would belong to the locale / language setting of the OS, not specifically the content lang attribute. 

CC @kojiishi 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9518 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 24 October 2023 13:02:47 UTC