W3C home > Mailing lists > Public > www-style@w3.org > February 2010

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

From: Zack Weinberg <zweinberg@mozilla.com>
Date: Tue, 16 Feb 2010 15:06:08 -0800
To: www-style@w3.org
Message-ID: <20100216150608.65011cab@mozilla.com>

End of style sheet closes a string without error, but if the last
character before the EOF is a backslash, what should the contents of
the string be?  For instance, consider

<!doctype html>
<style>span::before { content: "\</style>
<p>a<span>b</span>c</p>

Should anything appear in between the 'a' and the 'b'?  If so, what?

(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.)

zw
Received on Tuesday, 16 February 2010 23:06:43 GMT

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