W3C home > Mailing lists > Public > www-style@w3.org > April 2011

Re: [CSS21] url() parsing

From: L. David Baron <dbaron@dbaron.org>
Date: Sat, 23 Apr 2011 14:02:22 -0700
To: Alan Gresley <alan@css-class.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <20110423210222.GA29732@pickering.dbaron.org>
On Saturday 2011-04-23 17:03 +1000, Alan Gresley wrote:
> On 23/04/2011 7:18 AM, fantasai wrote:
> >I believe this testcase
> >http://test.csswg.org/suites/css2.1/20110323/html4/uri-015.htm
> >
> >background: red U\r\4c ("support/swatch-green.png");
> >
> >is wrong according to the core grammar. But I'm not 100% sure...
> >Also, we have three passes on the testcase. Do we want the testcase
> >or the grammar to be right? (I think the grammar should be right
> >in this case, making this pass probably does more harm than good.)
> >
> >~fantasai
> 
> 
> The pass condition is wrong, since there are no comma. WebKit drops
> the whole declaration for two reasons. First it does not allow
> escapes in 'url' and secondly it does not allow whitespace between
> the url and opening parenthesis 'url ('.

There's no whitespace there, since character escapes consume a
whitespace character following them.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Saturday, 23 April 2011 21:02:52 GMT

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