Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / selectors / lang-dynamic.html
blob40cd14054438658871b8406b1bf6e1124caa3ae3
1 <!DOCTYPE html>
2 <html>
3 <title>':lang()': dynamic changes are seen (bug 53783)</title>
4 <style>
5 p:lang(x) { background: green }
6 </style>
7 <div>
8 <p id="target1">This line should have a green background.
9 <p id="target2" lang="x">This line should NOT have a green background.
10 <p id="target3" lang="x">This line should NOT have a green background.
11 <p id="target4" lang="x">This line should NOT have a green background.
12 </div>
13 <script>
14 document.getElementById('target1').lang = "x";
15 document.getElementById('target2').lang = "y";
16 document.getElementById('target3').removeAttribute('lang');
17 document.getElementById('target4').lang = "";
18 </script>
19 </html>