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 8467 - background property shorthand parse problem
Summary: background property shorthand parse problem
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.0 (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: 2009-12-09 07:28 UTC by Sankar
Modified: 2012-09-21 14:04 UTC (History)
2 users (show)

See Also:


Attachments

Description Sankar 2009-12-09 07:28:53 UTC
Using the background property shorthand, the declaration:

  background:transparent url(../images/buttons/showdetails.jpg) no-repeat center;

Reports:

  Value Error : background  Parse Error  [empty string]

But if the declaration is switched to put the horizontal position before the
repeat value:

  background:transparent url(../images/buttons/showdetails.jpg) center no-repeat;

the validator reports no error. But when it lists the valid CSS information, it
shows the line with the repeat value first! (Like the code that it complained
about.)

Regards,
Sankar R.
Comment 1 Ken Barbalace 2010-02-02 22:43:36 UTC
I've noticed this bug as well over the past two/three months. It seems to have been introduced after the last major update to the validator.