Debian Codegraph @

testing/web-platform/mozilla/tests/css/quirks-invalidation-standard-sheet.html

raw
1 <!-- quirks, intentionally -->
2 <script src=/resources/testharness.js></script>
3 <script src=/resources/testharnessreport.js></script>
4 <div class="mixedCase"></div>
5 <script>
6 test(function() {
7 const kLime = "rgb(0, 255, 0)";
8
9 let div = document.querySelector("div");
10 assert_not_equals(getComputedStyle(div).color, kLime);
11 SpecialPowers.DOMWindowUtils.loadSheetUsingURIString('data:text/css,.mixedCase{color:lime}', 1)
12 assert_equals(getComputedStyle(div).color, kLime);
13 }, "Invalidation of quirks documents when standard sheets are inserted works properly")
14 </script>