[lang="es-MX"], lang="es"

 

A lang= value will NOT match a lang attribute value when the former contains more subtags.

Next test
HTML5

css3-selectors-lang-046
Result summary & related tests
Detailed results for this test
Link to spec