Thierry Koblentz wrote:
Hi Alan,
Mmm, ok, these are the same results that I see when IE9 preview is in
IE7 document mode or when IE8 is in IE7 compatibility mode.
For IE7, /9, /a, /b, /c and /d works.
For IE8, /0, /9, /a, /b, /c and /d works.
For IE9 preview, /0 works.
Interesting...
It looks like if you replace "background" with "color" then \9 works.
Hence why I suggested to use :root #ie9 {color: teal\9;}
but then :root #ie9 {background: teal\9;} would fail.
Hello Thierry,
Ok, thank you, you gave me that extra clue. Here is a revived test.
<http://css-class.com/test/css/colors/declaration-string-character-exscapes2.htm>
For background:
IE7 - /9, /a, /b, /c and /d works.
IE8 - /0, /9, /a, /b, /c and /d works.
IE9 preview or beta - /0 works.
For color:
IE7 - /9, /a, /b, /c and /d works (see note below).
IE8 - /0, /9, /a, /b, /c and /d works.
IE9 preview - /0, /9, /a, /b, /c and /d works.
Note: all other test fail. The color assumes the background-color of
the <body> if one is given.
So it's more reliable/safe to go with this instead:
:root #ie9 {background: teal\0;}
--
Regards,
Thierry
www.tjkdesign.com | www.ez-css.org | @thierrykoblentz
Not quite, Opera 10.62 sees both /0 in both background and color.
Anyway the hack with :root is using a progressive CSS selector.
<http://css-class.com/test/css/selectors/str-pseudo-class.htm>
IE9 now supports all structural pseudo-classes along with Gecko,
WebKit and Opera so,
:root #ie9 {background: teal\0;}
or
:root #id {property: value\0;}
works in IE9 and Opera (from at least 10.50) since they both support
the specs regarding valid escapes in CSS2.1 correctly. IE9 only fails
when the property is color.
--
Alan http://css-class.com/
Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/