W3C home > Mailing lists > Public > www-style@w3.org > January 2010

css3-background: grammar issue

From: Yves Lafon <ylafon@w3.org>
Date: Sat, 9 Jan 2010 03:11:53 -0500 (EST)
To: www-style@w3.org
Message-ID: <alpine.DEB.1.10.1001090303160.16200@wnl.j3.bet>
In this example:

background: /10em

It is parsable according to [CSS21 section 4] but not according to the 
grammar in appendix G
   : property ':' S* expr prio?
   : term [ operator? term ]*
   : '/' S* | ',' S*

also, what is the status of

background: / black;

Is it invalid CSS2 at the aprsing level, or invalid CSS3 at the data 
validation level? That can't be decided as there is no CSS version 

There are two possible paths for solving this:
1/ disallowing bckground to tart with a <bg-size> (there is already a rule 
forbidding <bg-position> after a <bg-size>, so it's in the same range).

2/ outlining the grammar change to appendix G in the CSS3 Background and 
Borders document (as in other CSS3 specs when such things occur), but it 
doesn't solve my issue on how to report the error in the CSS validator...


Baroula que barouleras, au tiéu toujou t'entourneras.

Received on Saturday, 9 January 2010 08:11:54 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:31 UTC