<!-- Please describe your changes on the following line: --> At the moment, worklets are always exposed, even though their spec is still a draft. This PR hides them behind a pref. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #17680. - [X] These changes do not require tests because the existing worklet tests do the job. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: 92eeec297bb14f08873aecc04ca3734a37c0478f
15 lines
711 B
Plaintext
15 lines
711 B
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 http://mozilla.org/MPL/2.0/. */
|
|
|
|
// https://drafts.css-houdini.org/css-typed-om-1/#cssstylevalue
|
|
// NOTE: should this be exposed to Window?
|
|
[Pref="dom.worklet.enabled", Exposed=(Worklet)]
|
|
interface CSSStyleValue {
|
|
stringifier;
|
|
// static CSSStyleValue? parse(DOMString property, DOMString cssText);
|
|
// static sequence<CSSStyleValue>? parseAll(DOMString property, DOMString cssText);
|
|
// This is a deprecated property, it's not in the spec any more but is used in houdini-samples
|
|
readonly attribute DOMString cssText;
|
|
};
|