Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / selectors / adjacent-selectors-with-subselector.html
blobb69a117706648f4d91a7e3b387b65f52e032e535
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 .green + div.sibling + div {
5 color: green;
7 </style>
8 <div>
9 <div id="first"></div>
10 <div class="sibling"></div>
11 <div id="target">This text should be green.</div>
12 </div>
13 <script>
14 description("Test if direct adjacent selectors are counted correctly where combined with subselector.");
16 shouldBeEqualToString("getComputedStyle(target, null).color", "rgb(0, 0, 0)");
17 first.className = "green";
18 shouldBeEqualToString("getComputedStyle(target, null).color", "rgb(0, 128, 0)");
19 </script>