[csswg-drafts] [css-fonts] Do generic fonts resolve to a single font face value?

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

== [css-fonts] Do generic fonts resolve to a single font face value? ==
See https://drafts.csswg.org/css-fonts-4/#generic-font-families and https://drafts.csswg.org/css-fonts-4/#font-matching-algorithm

Are:

 * `<p style='font-face: serif' lang='en'>Lorem ipsum dolor sit amet</p>`
 * `<p style='font-face: serif' lang='jp'>Lorem ipsum dolor sit amet</p>`

Guaranteed to render the same? The spec seems to imply, without directly stating, in various places that the generic font is a specific, probably user-specifiable font-face, which implies that they should. This is, I believe, not true in any browser: a Latin font is selected for the former, a Japanese font for the latter.

(Ref https://github.com/w3c/web-platform-tests/pull/6926 which made me realise this is unspecified behaviour.)

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

Received on Thursday, 17 August 2017 23:46:04 UTC