CSS2 Test Suite: 5.11.4 :lang

[index page] [section] [Previous] [Next] [Specification]

The style declarations contained within this page:

P:lang(en) {color: green;}
P:lang(de) {color: purple;}


This paragraph should NOT be any color except black. It (along with all the test statements on this page) has an ancestor element with a lang attribute that has a value of et-kl, which is intended to reset any potentially inherited lang values, either from HTTP headers or the user's language settings.

[en] This paragraph has been marked English, and should be green.

[de] This paragraph has been marked Deutsch, despite the fact that it clearly is English, and should be purple.

[de-ch] This paragraph has been marked as Swiss German, despite the fact that it clearly is English, and should be purple.


[index page] [section] [Previous] [Next] [Specification]