Question: are css selectors case sensitive?
Answer: CSS selectors are generally case-insensitive; this includes class and ID selectors. But HTML class names are case-sensitive (see the attribute definition), and that's causing a mismatch in your second example. ... If the document type defined class names as case-insensitive, then you would have a match regardless.