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

That's... interesting. No, the keyword `inherit` is not a conforming initial value. Cascade defines the initial value as the value the root element takes by default (as well as the value that non-inherited properties take by default). There's clearly some computed value on the root element: that value must be the “initial value” per CSS, and it must also be the value that's returned when the keyword `initial` is set, per the definition of `initial`. It's also worth noting that neither `initial` nor `inherit` can be specified values or computed values, they can only be cascaded values and the specified value becomes whatever those keywords represent. https://www.w3.org/TR/css-cascade-3/#defaulting

I think that makes this issue invalid, and WebKit has a bug.

> In any case, it would be good to make the spec require something more than "depends on user agent".

I'm not aware of a need for the UAs to align on a particular font-family value, if you have one in mind I think you need to explain why it's needed in a separate bug? :)

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4192#issuecomment-521017701 using your GitHub account

Received on Tuesday, 13 August 2019 21:33:13 UTC