summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1365162-1.html
blob: cf285f2001fb91d92830c7eb25f198225f13c9ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<style>
p { color: red; }
p:lang(zh) { color: green; }
div:lang(zh) + p { color: green; }
</style>
<body onload="document.querySelector('div').lang = 'zh'">
<div lang="en">
  <div>
    <p>This text should be green.</p>
  </div>
</div>
<p>This text should be green.</p>