1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 * The origin of this IDL file is
7 * http://dev.w3.org/csswg/css3-conditional/
8 * http://dev.w3.org/csswg/cssom/#the-css.escape%28%29-method
9 * https://www.w3.org/TR/css-highlight-api-1/#registration
11 * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
12 * liability, trademark and document use rules apply.
17 boolean supports(UTF8String property, UTF8String value);
18 boolean supports(UTF8String conditionText);
21 // http://dev.w3.org/csswg/cssom/#the-css.escape%28%29-method
22 partial namespace CSS {
23 DOMString escape(DOMString ident);
26 // https://www.w3.org/TR/css-highlight-api-1/#registration
27 partial namespace CSS {
28 [Pref="dom.customHighlightAPI.enabled", GetterThrows]
29 readonly attribute HighlightRegistry highlights;
32 // https://drafts.css-houdini.org/css-properties-values-api-1/#registering-custom-properties
33 // See https://github.com/w3c/css-houdini-drafts/pull/1100 for DOMString vs. UTF8String
34 dictionary PropertyDefinition {
35 required UTF8String name;
36 UTF8String syntax = "*";
37 required boolean inherits;
38 UTF8String initialValue;
40 partial namespace CSS {
41 [Pref="layout.css.properties-and-values.enabled", Throws]
42 undefined registerProperty(PropertyDefinition definition);