W3C home > Mailing lists > Public > www-style@w3.org > July 2009

Re: parsing issue in the editor's draft of css3-image

From: Zack Weinberg <zweinberg@mozilla.com>
Date: Thu, 16 Jul 2009 10:47:59 -0700
To: fantasai <fantasai.lists@inkedblade.net>
Cc: Yves Lafon <ylafon@w3.org>, www-style@w3.org
Message-ID: <20090716104759.3b8830ac@mozilla.com>
fantasai <fantasai.lists@inkedblade.net> wrote:
> Yves Lafon wrote:
> > In [1], I found the following example:
> > 
> > background-image: image(wavy.svg, 'wavy.png' 150dpi, "wavy.gif"  or
> > blue);
> > 
> > Should it be image( url(wavy.svg), 'wavy.png' 150dpi, "wavy.gif" or 
> > blue); ?
...
> > 
> > Depending of the intent, it would be good to either add a url() or
> > to require quotes.
> > Thanks,
> 
> CSS3 modules are not required to conform to the CSS2.1 Appendix G
> grammar, only to the core grammar in Chapter 4. Therefore this is not
> an issue. A CSS2.1 parser will parse the functional notation as
> invalid, which is expected.

However, this production introduces another special case in the
tokenizer and therefore should, IMO, be changed as Yves suggests anyway.

(I think I said this the first time image() was suggested.)

zw
Received on Thursday, 16 July 2009 17:48:51 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:19 GMT