Bug 1839315: part 4) Link from `SheetLoadData::mWasAlternate` to spec. r=emilio DONTBUILD
[gecko.git] / layout / style / test / test_medialist_privilege.html
blobbb021d75e451356f2de621db6767228ee5bb0f44
1 <!doctype html>
2 <title>Test whether it can access a filed in MediaList with normal privilege after accessing with chrome privilege.</title>
3 <script src="/tests/SimpleTest/SimpleTest.js"></script>
5 <style>
6 @media screen and (max-width: 800px) {
7 body {
8 background-color: lime;
11 </style>
12 <script>
13 "use strict";
15 const chromeDocument = SpecialPowers.wrap(document);
16 assertMediaText(chromeDocument);
17 assertMediaText(document);
19 function assertMediaText(doc) {
20 const stylesheet = doc.styleSheets[0];
21 const rule = stylesheet.cssRules[0];
22 const media = rule.media;
23 is(rule.media.mediaText, "screen and (max-width: 800px)");
25 </script>