2 <script src=
"../../resources/js-test.js"></script>
4 .a .b::backdrop { background-color: green; }
7 <dialog class=
"b" id=
"dialog"><span></span><span></span><span></span></dialog>
10 description("Change class affecting ::backdrop style");
12 var dialog
= document
.getElementById("dialog");
16 var green
= 'rgb(0, 128, 0)';
18 shouldNotBe("getComputedStyle(dialog, '::backdrop').backgroundColor", "green");
20 document
.body
.offsetLeft
;
21 document
.getElementById("t").className
= "a";
24 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
26 shouldBe("getComputedStyle(dialog, '::backdrop').backgroundColor", "green");