1 2 3 4 5 6 7 8 9
.only-child-ref:first-child:last-child { color: blue; background-color: red; } .only-child-notref:only-child { color: blue; background-color: red; }