Chained pseudo-selectors do not seem to work in IE8 on Windows XP. Is there any documentation about this?
I’m developing a website using Selectivizr in order to use CSS3 selectors, but a style such as this doesn’t work in IE8, whereas it works everywhere else (unsurprisingly):
span:last-child:after {content: "foobar";}
This is not a bug, it’s due to the fact the the selector doesn’t match natively.
The simple selector in this case is either
span:first-child, which matches natively in IE8, orspan:last-child, which does not.Appending
:aftertospan:first-childis a match, while appending it tospan:last-childis not, and since Selectivizr is a post-processor, it comes too late to save the day. Perhaps a pre-processor would have better luck.