1 2 3 4 5 6 7 8
/* Source: http://www.w3.org/Style/CSS/Test/CSS3/Selectors/current/html/tests/css3-modsel-14d.html */ p { background: green; color: white; } .t1:not(.t2) { background: red; color: yellow; } :not(.t2).t1 { background: red; color: yellow; } .t2:not(.t1) { background: red; color: yellow; } :not(.t1).t2 { background: red; color: yellow; }