There is an unusual issue: after a recent update, the selector
.groups .group:nth-child(2):nth-last-child(2){}
suddenly stopped working. However, it still works perfectly in Webkit and Gecko browsers. Any thoughts on how to resolve this?
Snippet of HTML
<div class="groups">
<div class="group"></div>
<div class="group"></div>
<div class="group"></div>
</div>
CSS Code
.groups .group{
background-color:#000;
}
.groups .group:first-child{
background-color:yellow;
}
.groups .group:nth-child(2):nth-last-child(2),
.groups .group:nth-child(2):last-child{
background-color:red;
}
.groups .group:last-child:nth-child(3){
background-color:green;
}
.groups{
font-size:0;
}
.groups .group{
display:inline-block;
height:100px;
width:30px;
}
You can view it in action here: http://jsfiddle.net/LAq73/1/
How it appears in Blink (Chrome)
How it looks in Safari (WebKit)
And finally, Firefox:
Any suggestions on how to resolve this issue?