CSS escape sequences

http://www.w3.org/TR/css3-syntax/#characters defines CSS escape
sequences of the form `\000026` or `\26 `, both of which decode to
`&`.

WebKit browsers don’t support this syntax for characters outside the
BMP: https://bugs.webkit.org/show_bug.cgi?id=76152 For example,
`\1d306 ` or `\01d306` are supposed to be escape sequences for the
“tetragram for centre” symbol (U+1D306), but they don’t work in
WebKit.

There seems to be another way to escape these characters, namely by
breaking them up in UTF-16 code units: `\d834\df06 `. All browsers
except Gecko (https://bugzilla.mozilla.org/show_bug.cgi?id=717529)
seem to support this, even though this isn’t mentioned in the spec.

Should the spec be changed to reflect reality?

Mathias

Received on Thursday, 12 January 2012 14:37:21 UTC