Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / dynamic-class-backdrop-pseudo.html
blobb739c0b9ee5b76c08b3c97a9fc233ed73e197c91
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 .a .b::backdrop { background-color: green; }
5 </style>
6 <div id="t">
7 <dialog class="b" id="dialog"><span></span><span></span><span></span></dialog>
8 </div>
9 <script>
10 description("Change class affecting ::backdrop style");
12 var dialog = document.getElementById("dialog");
14 dialog.showModal();
16 var green = 'rgb(0, 128, 0)';
18 shouldNotBe("getComputedStyle(dialog, '::backdrop').backgroundColor", "green");
20 document.body.offsetLeft;
21 document.getElementById("t").className = "a";
23 if (window.internals)
24 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2");
26 shouldBe("getComputedStyle(dialog, '::backdrop').backgroundColor", "green");
28 dialog.close();
29 </script>