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

 

When the lang= value uses a single subtag, it will NOT match against an attribute value where it appears in a different position.

Next test
HTML5

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