RE: error in CSS 2.1 grammar

fantasai wrote:
> Daniel Glazman wrote:
> >
> > The current spec says
> >
> >   O        o|\\0{0,4}(51|71)(\r\n|[ \t\r\n\f])?|\\o
> >
> > where it should read
> >
> >   O        o|\\0{0,4}(4f|6f)(\r\n|[ \t\r\n\f])?|\\o
>
> Added as Issue 55, assigned to CSS2.1 editor.
>    http://csswg.inkedblade.net/spec/css2.1#issue-55
>

Based on how I read the spec it means that

@im\p\00004frt

Is equivalent to

@import

Similarly, '@\m\65 \64 \i\61 ' is equivalent to '@media'.

I can venture a quess as to why this is (something along the lines of preparsing escaped characters) -- but it doesn't seem like this is supported by Opera 9.51 or the latest from webkit/safari (see attached test case for @media). Firefox 3.0 does appear to support it.

- Jacob

Received on Friday, 4 July 2008 09:02:58 UTC