2 <script src=
"../../resources/js-test.js"></script>
4 .green + div.sibling + div {
10 <div class=
"sibling"></div>
11 <div id=
"target">This text should be green.
</div>
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)");