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 8442 - background property shorthand parse problem
Summary: background property shorthand parse problem
Status: RESOLVED FIXED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.1 (show other bugs)
Version: CSS Validator
Hardware: Macintosh MacOS X
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL: http://babbage.cs.qc.cuny.edu/081
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-04 22:25 UTC by Christopher Vickery
Modified: 2012-09-21 14:17 UTC (History)
3 users (show)

See Also:


Attachments

Description Christopher Vickery 2009-12-04 22:25:59 UTC
Using the background property shorthand, the declaration:

  background:transparent url(../images/menu_tabs.png) no-repeat -250px;

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/menu_tabs.png) -250px 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.)
Comment 1 Gérard Talbot 2009-12-08 19:08:01 UTC
W3C CSS validator people,

We (dorayme, Jonathan N. Little, Chris F.A. Johnson) stumbled precisely on this bug recently. We hope this parsing bug can be fixed.

Thread:
http://groups.google.com/group/comp.infosystems.www.authoring.stylesheets/browse_thread/thread/6c242cba4e730eaa?pli=1

Newsgroup: comp.infosystems.www.authoring.stylesheets

Subject line: background shorthand

Original poster: shapper

Please note that this bug applies to other os and other platform. So,

Hardware field should be changed to All (not just Mac)

OS field should be changed to All

best regards, Gérard