2 <script src=
"../../resources/js-test.js"></script>
9 .foo + section + section + section {
10 background-color: red;
12 .bar + section + section + section {
13 background-color: green;
17 <section class=
"foo"></section>
20 <section id=
"last"></section>
23 document
.documentElement
.offsetTop
;
24 document
.querySelector('.foo').className
= 'bar';
25 document
.documentElement
.offsetTop
;
26 shouldBe("getComputedStyle(document.getElementById('last')).backgroundColor", "'rgb(0, 128, 0)'");