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

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 UTC