2 <script src=
"../../../resources/js-test.js"></script>
4 input { background: transparent }
5 :enabled { background-color: green }
6 input + div { color: pink }
8 <input id=
"button" type=
"button" disabled
></input>
16 description("Use descendant invalidation set for :enabled pseudo class.")
18 var transparent
= "rgba(0, 0, 0, 0)";
19 var green
= "rgb(0, 128, 0)";
21 shouldBe("getComputedStyle(button, '').backgroundColor", "transparent");
23 button
.offsetTop
; // Force recalc.
25 button
.disabled
= false;
28 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
30 shouldBe("getComputedStyle(button, '').backgroundColor", "green");