blob: 4d9647ba27d83c0a7a8cfd24838aa0d92dfb9e76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
<!DOCTYPE HTML>
<meta charset="utf-8">
<title>Test for chrome-only rules in constructable stylesheets</title>
<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
<script>
add_task(async function chrome_rules_constructable_stylesheets() {
let sheet = new CSSStyleSheet();
sheet.replaceSync(".foo { -moz-default-appearance: none }");
is(sheet.cssRules[0].style.length, 1, "Should parse chrome-only property in chrome document");
});
</script>
|