2 <script src=
"../../resources/js-test.js"></script>
4 .b .a { background-color: red; }
6 <div class=
"b"><div class=
"a">You should see no red.
</div></div>
8 description("Removing a class affected by a selector.");
10 document
.body
.offsetLeft
; // force style recalc
11 document
.getElementsByTagName("div")[1].className
= "";
12 shouldBe("getComputedStyle(document.getElementsByTagName('div')[1], null).backgroundColor", "'rgba(0, 0, 0, 0)'");