antirek / ie7-js

Automatically exported from code.google.com/p/ie7-js
0 stars 1 forks source link

Can't use nth-child with + or ~ #347

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I had tested using nth-child with + or ~, and that doesn't work. For example:

ul li:nth-child(1) + li {
    background: yellow;
    }

ul li:nth-child(1) ~ li {
    background: yellow;
    }

However, nth-child can be used with >, For example:

ul li:nth-child(1) > a {
    background: yellow;
    }

I haven't tested nth-child with other selectors.

Original issue reported on code.google.com by elegance...@gmail.com on 10 Nov 2011 at 6:25

GoogleCodeExporter commented 9 years ago
Demo page.

Original comment by elegance...@gmail.com on 10 Nov 2011 at 6:38

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
P.S. This issue occurs only on IE 6.

Original comment by elegance...@gmail.com on 11 Nov 2011 at 3:23

GoogleCodeExporter commented 9 years ago
still not fixed

Original comment by jelmer.a...@gmail.com on 27 Dec 2011 at 1:18