This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
URL for Test ------------ http://jigsaw.w3.org/css-validator/validator?uri=http://www.gtalbot.org/BrowserBugsSection/css21testsuite/font-family-inherit-foo.html&warning=2&profile=css21&usermedium=all Actual result ------------- CSS validator reports this validation error message: " Value Error : font-family Too many values or values are not recognized : inherit foo " Expected result --------------- inherit foo should be treated as an unquoted font name with one blank white space which should be parsed as "inherit foo" " If a sequence of identifiers is given as a font family name, the computed value is the name converted to a string by joining all the identifiers in the sequence by single spaces. " http://www.w3.org/TR/CSS21/fonts.html#font-family-prop Additional notes ---------------- 1- div {font-family: foo inherit;} is parsed and reported as valid by the CSS validator. 2- This edge case has been discussed in the thread [css21] 'font-family' should disallow 'inherit' in font names more strictly" http://lists.w3.org/Archives/Public/www-style/2012Apr/0662.html 3- Credits must go to Kang-Hao (Kenny) Lu for discovering this Gérard
Given that there is active discussion about changing this behavior to clarify that it's invalid, I think this bug should be WONTFIX for now. It can be reopened if we agree that this is a valid case.
Resolving as WONTFIX now that things have been sufficiently clarified More info: http://lists.w3.org/Archives/Public/www-style/2012May/0200.html http://lists.w3.org/Archives/Public/www-style/2012May/0160.html
" 'foo inherit' and 'inherit foo' are valid unquoted font family names. " http://lists.w3.org/Archives/Public/www-style/2012May/0878.html Therefore, REOPENING
Fixed, the test case now reports the following warning: "Family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the name are ignored and any sequence of whitespace characters inside the name is converted to a single space."