browser_rules_inactive_css_xul.js (934B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 "use strict"; 5 6 // Test inactive css properties in XUL documents. 7 8 const TEST_URI = URL_ROOT_SSL + "doc_inactive_css_xul.xhtml"; 9 10 const TEST_DATA = [ 11 { 12 selector: "#test-img-in-xul", 13 inactiveDeclarations: [ 14 { 15 declaration: { "grid-column-gap": "5px" }, 16 ruleIndex: 0, 17 }, 18 ], 19 activeDeclarations: [ 20 { 21 declarations: { 22 width: "10px", 23 height: "10px", 24 }, 25 ruleIndex: 0, 26 }, 27 ], 28 }, 29 ]; 30 31 add_task(async () => { 32 await SpecialPowers.pushPermissions([ 33 { type: "allowXULXBL", allow: true, context: URL_ROOT_SSL }, 34 ]); 35 36 info("Open a url to a XUL document"); 37 await addTab(TEST_URI); 38 39 info("Open the inspector"); 40 const { inspector, view } = await openRuleView(); 41 42 await runInactiveCSSTests(view, inspector, TEST_DATA); 43 });