-
Notifications
You must be signed in to change notification settings - Fork 756
Description
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".