Files
servo/components/script_bindings/webidls/CSS.webidl
Simon Wülker a60b53eded script: Convert CSS from a IDL interface with static methods to a namespace (#38579)
This change updates our implementation to match the spec. Per
https://drafts.csswg.org/cssom/#issue-24739c22 this is observable.

Testing: Covered by existing web platform tests.

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
2025-08-10 03:35:25 +00:00

37 lines
1.2 KiB
Plaintext

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
/*
* The origin of this IDL file is
* https://drafts.csswg.org/cssom/#namespacedef-css
*/
// https://drafts.csswg.org/cssom/#the-css.escape()-method
[Exposed=Window]
namespace CSS {
[Throws] CSSOMString escape(CSSOMString ident);
};
// https://drafts.csswg.org/css-conditional-3/#dom-css-supports
partial namespace CSS {
boolean supports(CSSOMString property, CSSOMString value);
boolean supports(CSSOMString conditionText);
};
// https://drafts.css-houdini.org/css-paint-api/#dom-css-paintworklet
partial namespace CSS {
[SameObject, Pref="dom_worklet_enabled"] readonly attribute Worklet paintWorklet;
};
// https://drafts.css-houdini.org/css-properties-values-api/#the-registerproperty-function
// dictionary PropertyDefinition {
// required DOMString name;
// DOMString syntax = "*";
// required boolean inherits;
// DOMString initialValue;
// };
// partial namespace CSS {
// undefined registerProperty(PropertyDefinition definition);
// };