1 2 3 4 5 6 7 8 9
/* Source: http://www.w3.org/Style/CSS/Test/CSS3/Selectors/current/html/tests/css3-modsel-15b.html */ p { background: green; color: white; } #test#fail { background: red; color: yellow; } #fail#test { background: red; color: yellow; } #fail { background: red; color: yellow; } div { background: red; color: yellow; } #pass#pass { background: green; color: white; }