summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/selectors/lang-vs-xml-lang-xhtml.xhtml
blob: 1fe77d37240f7667a21f4e07e7828c7754cc5dbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <title>':lang()': inherit LANG from parent element, xml:lang takes precedence in XML</title>
 <style>
  p:lang(x) { background: green }
  p:lang(y) { background: blue }
  p:lang(z) { background: red }
 </style>
 <div xml:lang="x-test" lang="z-test">
    <p>This line should have a green background.</p>
    <p lang="y-test">This line should NOT have a green background.</p>
 </div>
</html>