- This topic is empty.
January 22, 2013 at 5:46 am #42166EricMember
does IE9 support color:transparent and li:nth-child(1)? That’s font color transparent.
I’m doing something ie8 pukes on but I can live with it if ie9 picks it up. ThanksJanuary 22, 2013 at 6:00 am #121836
**IE9 does support :nth-child() pseudo-selectors.**
However I’m facing some difficulties finding a source regarding the transparent keyword. I know it was first introduced in CSS1 as a valid value for the background-color property.
Then, CSS2 allowed border-color to have transparent as a valid value. Now, as far as CSS3 is concerned, transparent has become a valid value for anything accepting a color value.
But, I don’t know where IE9 stands on the topic. I’d say it supports it on both border-color and background-color, for sure. But I don’t know it’s okay for the color property.
Anyone wanna spread some knowledge here?
**EDIT**: I just tested it, **it does support transparent as a value for the color property**. You’re free to go.January 22, 2013 at 6:02 am #121837Paulie_DMember
IE9 supports rgba & hsla (AFAIK) so it should be fine although you may have to use 0 opacity rather than ‘transparent’.
IE9 also supports nth-child (again AFAIK): http://caniuse.com/#search=nth-childJanuary 22, 2013 at 6:03 am #121840January 22, 2013 at 6:27 am #121844Paulie_DMember
>>@Paulie_D: not sure opacity as a better browser support than transparent. Depends on what he’s planning to do with it.
I’m referencing ‘opacity’ as the 0 in RGBA and alpha in HSLA not as a CSS property.
Logically, if RGBA and HSLA are supported then transparent color is an option as
color : rgba (0,0,0,0) /* transparent text */
As you have found the KEYWORD is also supported which, I suppose was his question but it’s just shorthand for the other ways of doing it.January 22, 2013 at 7:46 am #121867
- The forum ‘CSS’ is closed to new topics and replies.