p { background-color : red } p[class~="b"] { background-color : lime } address { background-color : red } address[title~="foo"] { background-color : lime } span[class~="b"] { background-color : red }