Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android'
- Manifest: layout/style/test/chrome/chrome.toml
<!DOCTYPE HTML>
<meta charset="utf-8">
<title>Test for chrome-only rules in constructable stylesheets</title>
<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>