2 <script src=
"../../../resources/js-test.js"></script>
4 :target #match { background-color: green }
5 #target + div { color: pink }
12 <div id=
"match"></div>
23 description("Use descendant invalidation set for :target pseudo class.")
25 var transparent
= "rgba(0, 0, 0, 0)";
26 var green
= "rgb(0, 128, 0)";
28 shouldBe("getComputedStyle(match, '').backgroundColor", "transparent");
30 target
.offsetTop
; // Force recalc.
32 document
.location
.hash
= "#target";
34 // Should have checked that internals.updateStyleAndReturnAffectedElementCount()
35 // equals 2 here, but the target style is updated synchronously from where the
38 shouldBe("getComputedStyle(match, '').backgroundColor", "green");