Source code

Revision control

Other Tools

Test Info:

<!doctype html>
<title>Test whether it can access a filed in MediaList with normal privilege after accessing with chrome privilege.</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
@media screen and (max-width: 800px) {
body {
background-color: lime;
"use strict";
const chromeDocument = SpecialPowers.wrap(document);
function assertMediaText(doc) {
const stylesheet = doc.styleSheets[0];
const rule = stylesheet.cssRules[0];
const media =;
is(, "screen and (max-width: 800px)");