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 5307 - Shorthand background property colour set to inherit raises error
Summary: Shorthand background property colour set to inherit raises error
Status: RESOLVED INVALID
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.1 (show other bugs)
Version: CSS Validator
Hardware: PC Windows XP
: 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: 2007-12-07 15:08 UTC by Dave Smith
Modified: 2008-03-25 17:36 UTC (History)
0 users

See Also:


Attachments

Description Dave Smith 2007-12-07 15:08:12 UTC
Hi

The following css raises an error with the validator:

#frontHeader{background:inherit url(img/banner_two.jpg) no-repeat left bottom;color:#99CC00;}

The background color property set to inherit causes the error, yet this value is valid.

all the best
Dave
Comment 1 Olivier Thereaux 2008-03-25 17:36:13 UTC
Hi Dave, thanks for your report.

This was a little confusing to me too, but asking people more knowledgeable of the spec gave the answer: "inherit" can not be used as the value of an individual property within a shorthand property, to avoid ambiguities.

See:
http://lists.w3.org/Archives/Public/www-style/2008Mar/0311.html