summaryrefslogtreecommitdiff
path: root/dom/webidl
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-08-24 00:50:36 +0200
committerMoonchild <moonchild@palemoon.org>2022-08-24 00:50:36 +0200
commit0488d0b40bce4965483b05821c33317adda4dd30 (patch)
treeb1aa5ed44ec0e4465e3042d39dcee6078d11208c /dom/webidl
parent50bd3acb5b664fab9a78e5cf160ad92cdb577a6e (diff)
downloaduxp-0488d0b40bce4965483b05821c33317adda4dd30.tar.gz
Issue #1994 - Align CSS.supports with the current spec.
The current spec makes "implicit" parentheses a thing for feeding css strings to CSS.supports() The current spec also implies CSS is a namespace, not an interface
Diffstat (limited to 'dom/webidl')
-rw-r--r--dom/webidl/CSS.webidl10
1 files changed, 5 insertions, 5 deletions
diff --git a/dom/webidl/CSS.webidl b/dom/webidl/CSS.webidl
index b5cdab2d18..2a9746e2c9 100644
--- a/dom/webidl/CSS.webidl
+++ b/dom/webidl/CSS.webidl
@@ -10,15 +10,15 @@
* liability, trademark and document use rules apply.
*/
-interface CSS {
+namespace CSS {
[Throws]
- static boolean supports(DOMString property, DOMString value);
+ boolean supports(DOMString property, DOMString value);
[Throws]
- static boolean supports(DOMString conditionText);
+ boolean supports(DOMString conditionText);
};
// http://dev.w3.org/csswg/cssom/#the-css.escape%28%29-method
-partial interface CSS {
- static DOMString escape(DOMString ident);
+partial namespace CSS {
+ DOMString escape(DOMString ident);
};