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

 

A lang= value will NOT match a lang attribute value when the latter contains additional subtags.

Next test
HTML5

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