diff options
Diffstat (limited to 'components/script_bindings')
-rw-r--r-- | components/script_bindings/webidls/CSSStyleSheet.webidl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script_bindings/webidls/CSSStyleSheet.webidl b/components/script_bindings/webidls/CSSStyleSheet.webidl index 701a5637eb2..1241b5c2769 100644 --- a/components/script_bindings/webidls/CSSStyleSheet.webidl +++ b/components/script_bindings/webidls/CSSStyleSheet.webidl @@ -5,12 +5,20 @@ // https://drafts.csswg.org/cssom/#the-cssstylesheet-interface [Exposed=Window] interface CSSStyleSheet : StyleSheet { + constructor(optional CSSStyleSheetInit options = {}); + // readonly attribute CSSRule? ownerRule; [Throws, SameObject] readonly attribute CSSRuleList cssRules; [Throws] unsigned long insertRule(DOMString rule, optional unsigned long index = 0); [Throws] undefined deleteRule(unsigned long index); }; +dictionary CSSStyleSheetInit { + // DOMString baseURL = null; + (MediaList or DOMString) media; + boolean disabled = false; +}; + // https://drafts.csswg.org/cssom/#legacy-css-style-sheet-members partial interface CSSStyleSheet { [Throws, SameObject] readonly attribute CSSRuleList rules; |