diff options
author | JustOff <Off.Just.Off@gmail.com> | 2020-01-07 13:05:05 +0200 |
---|---|---|
committer | JustOff <Off.Just.Off@gmail.com> | 2020-01-07 13:05:05 +0200 |
commit | b05f89dcd4a88bcc07cc2fa4245362f705e8e2af (patch) | |
tree | 1b1284a85bf5ecfdbc134f75abd9c877f3fab01f /dom/webidl | |
parent | 26dc2759c50e230f8dee9ee676d1089171f33bc4 (diff) | |
download | uxp-b05f89dcd4a88bcc07cc2fa4245362f705e8e2af.tar.gz |
Issue mcp-graveyard/UXP#1345 - Implement non-standard legacy CSSStyleSheet rules
Diffstat (limited to 'dom/webidl')
-rw-r--r-- | dom/webidl/CSSStyleSheet.webidl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/webidl/CSSStyleSheet.webidl b/dom/webidl/CSSStyleSheet.webidl index 15c110b8b4..677d3ec528 100644 --- a/dom/webidl/CSSStyleSheet.webidl +++ b/dom/webidl/CSSStyleSheet.webidl @@ -26,4 +26,12 @@ interface CSSStyleSheet : StyleSheet { unsigned long insertRule(DOMString rule, optional unsigned long index = 0); [Throws, NeedsSubjectPrincipal] void deleteRule(unsigned long index); + + // Non-standard WebKit things, see https://github.com/w3c/csswg-drafts/pull/3900. + [Throws, NeedsSubjectPrincipal, BinaryName="cssRules"] + readonly attribute CSSRuleList rules; + [Throws, NeedsSubjectPrincipal, BinaryName="deleteRule"] + void removeRule(optional unsigned long index = 0); + [Throws, NeedsSubjectPrincipal] + long addRule(optional DOMString selector = "undefined", optional DOMString style = "undefined", optional unsigned long index); }; |