blob: 1fe77d37240f7667a21f4e07e7828c7754cc5dbb [file] [log] [blame]
<!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>