This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25424 - Font shorthand incorrectly passes validation when font family or font size is missing
Summary: Font shorthand incorrectly passes validation when font family or font size is...
Status: NEW
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 3 (show other bugs)
Version: CSS Validator
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-23 05:10 UTC by Jukka K. Korpela
Modified: 2014-04-23 05:10 UTC (History)
0 users

See Also:


Attachments

Description Jukka K. Korpela 2014-04-23 05:10:19 UTC
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;
}