diff options
author | Moonchild <moonchild@palemoon.org> | 2022-08-24 00:50:36 +0200 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-08-24 00:50:36 +0200 |
commit | 0488d0b40bce4965483b05821c33317adda4dd30 (patch) | |
tree | b1aa5ed44ec0e4465e3042d39dcee6078d11208c /dom | |
parent | 50bd3acb5b664fab9a78e5cf160ad92cdb577a6e (diff) | |
download | uxp-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')
-rw-r--r-- | dom/bindings/Bindings.conf | 4 | ||||
-rw-r--r-- | dom/webidl/CSS.webidl | 10 |
2 files changed, 5 insertions, 9 deletions
diff --git a/dom/bindings/Bindings.conf b/dom/bindings/Bindings.conf index 989757548a..146bf8d15b 100644 --- a/dom/bindings/Bindings.conf +++ b/dom/bindings/Bindings.conf @@ -170,10 +170,6 @@ DOMInterfaces = { 'headerFile': 'Crypto.h' }, -'CSS': { - 'concrete': False, -}, - 'CSS2Properties': { 'nativeType': 'nsDOMCSSDeclaration' }, 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); }; |