2 <script src="../../../resources/js-test.js"></script>
4 :checked { background-color: green }
5 input + div { color: pink }
7 <input id="checkbox" type="checkbox"></input>
15 description("Use descendant invalidation set for :checked pseudo class.")
17 var transparent = "rgba(0, 0, 0, 0)";
18 var green = "rgb(0, 128, 0)";
20 shouldBe("getComputedStyle(checkbox, '').backgroundColor", "transparent");
22 checkbox.offsetTop; // Force recalc.
24 checkbox.checked = true;
27 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
29 shouldBe("getComputedStyle(checkbox, '').backgroundColor", "green");