2 <script src=
"../../../resources/js-test.js"></script>
4 :not(.x).a + #b { background-color: green }
9 description("Negated selector should not clear adjacent combinator flag.")
11 var transparent
= "rgba(0, 0, 0, 0)";
12 var green
= "rgb(0, 128, 0)";
14 shouldBe("getComputedStyle(b).backgroundColor", "transparent");
16 a
.offsetTop
; // Force recalc.
20 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
22 a
.offsetTop
; // Force recalc (crbug.com/436064)
24 shouldBe("getComputedStyle(b).backgroundColor", "green");