[csswg-drafts] [css-fonts] Clarify initial value of 'font-family' (#4192)

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

== [css-fonts] Clarify initial value of 'font-family' ==
https://drafts.csswg.org/css-fonts-4/#font-family-prop

> Initial: depends on user agent

Is the keyword `inherit` a conforming initial value?

It seems like in WebKit, if you specify `font-family: initial` on an element, it will inherit the font-family from the parent, instead of getting whatever the root element would have if it had no author CSS specified.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/7116

The text "test" is in the `fantasy` font-family in WebKit, but in `serif` in Blink and Gecko.

In CSS2, there was no `initial` keyword, so this was not observable. But now it is, and it is not interoperable between browser engines.

Which behavior is intended? Like WebKit, or like Gecko/Blink? I assumed it would work like in Gecko/Blink. In any case, it would be good to make the spec require something more than "depends on user agent".

cc @nattokirai @litherum @svgeesus 

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

Received on Tuesday, 13 August 2019 11:07:48 UTC