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

[Bug 25424] New: Font shorthand incorrectly passes validation when font family or font size is missing

From: <bugzilla@jessica.w3.org>
Date: Wed, 23 Apr 2014 05:10:19 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-25424-169@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25424

            Bug ID: 25424
           Summary: Font shorthand incorrectly passes validation when font
                    family or font size is missing
           Product: CSSValidator
           Version: CSS Validator
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: CSS 3
          Assignee: dave.null@w3.org
          Reporter: jukka.k.korpela@kolumbus.fi
        QA Contact: www-validator-cvs@w3.org

Example:

h1 { font: 200% }

This incorrectly passes validation, even though font family value is missing.

A font short hand without font size, e.g.

font: Calibri

also passes validation. It should not, by the specifications (even though it
would be convenient to be able to write that way).

Even

font: italic

passes and is reported as follows:

Valid CSS information
a {
font : null;
}

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 23 April 2014 05:10:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:56 UTC