Re: [css2.1] Content of a string containing a backslash followed immediately by EOF

On 2/16/10 6:06 PM, Zack Weinberg wrote:
> (Gecko puts a single backslash between the 'a' and the 'b'.  Opera puts
> nothing there.  Webkit and IE8 don't seem to support this use
> of ::before.)

Not sure about IE, but it looks like Webkit somehow messes up \\ at the 
end of the before content no matter what.  |content: "\\m";| shows a 
backslash followed by an 'm', but |content: "whatever\\"| shows nothing.

And even more clearly, something like this:

   <style>.a:before { content: "m\\"; } .a { content: "o\\" }</style>
   <div>a:'<span class="a">'</span></div>

Renders as:

   a:'m\"; } .a { content: '

in Webkit.  So it looks like the \\ is somehow managing to escape the 
'"' in Webkit's parser.

-Boris

Received on Wednesday, 17 February 2010 00:29:44 UTC