W3C home > Mailing lists > Public > www-validator-cvs@w3.org > April 2012

[Bug 16848] New: {font-family: inherit foo;} is parsed and reported as invalid

From: <bugzilla@jessica.w3.org>
Date: Wed, 25 Apr 2012 00:22:53 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-16848-169@http.www.w3.org/Bugs/Public/>

           Summary: {font-family: inherit foo;} is parsed and reported as
           Product: CSSValidator
           Version: CSS Validator
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSS 2.1
        AssignedTo: dave.null@w3.org
        ReportedBy: info@gtalbot.org
         QAContact: www-validator-cvs@w3.org

URL for Test


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.

Additional notes

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"

3- Credits must go to Kang-Hao (Kenny) Lu for discovering this


Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 25 April 2012 00:22:56 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:55 UTC