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

Re: [CSS2.1] escapes, characters and parsing

From: Alan Gresley <alan@css-class.com>
Date: Fri, 25 Mar 2011 05:08:30 +1100
Message-ID: <4D8B889E.1090401@css-class.com>
To: Gabriele Romanato <gabriele.romanato@gmail.com>
CC: CSS 3 W3C Group <www-style@w3.org>
On 25/03/2011 4:49 AM, Alan Gresley wrote:

> A simpler test that removes '\*' shows the same results among the
> browsers (minus the viewport background-color).
>
>
> <http://css-class.com/test/css21testsuite/escapes-033.xht>
>
>
> This time the pertinent CSS is this.
>
>
> \p { background: green; }
>
> body \2a { background: red; }
>
>
> Still WebKit apples the style for the last rule-set (starting with
> 'body') to one <p> and one <div>. It is like WebKit is seeing this for
> the <p>.
>
>
> \p { background: red; }
>
>
> I do not understand how WebKit can style the <div> with a red background.


I do now. '/2a' = '*' so WebKit see this,


     body * { background: red; }


which styles the <div>. I not sure why the other browsers handle this 
different.



-- 
Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
Received on Thursday, 24 March 2011 18:09:06 GMT

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