CSS sibling adjacent chain

Is the following

.a + .b + .c

a valid selector for an element of a class cthat immediately follows two elements of a class, aand baccordingly? It seems to work in Chrome 16. From the standard it is clear that it should work?

+5
source share
1 answer

Works well for me and is standard as far as I know. (Never seen anything nasty)

Example: http://jsfiddle.net/6ykxB/

If he used the last neighboring selector, it would still work

.z + .b + .c

But it is not

Example2: http://jsfiddle.net/6ykxB/1/

SitePoint , , :

http://reference.sitepoint.com/css/adjacentsiblingselector

:hover :

Safari ( 4) Chrome ( 3) "", , -: hover. .

+5

All Articles