Files
tubestation/dom/webidl/CSSNestedDeclarations.webidl
Emilio Cobos Álvarez 62087dd417 Bug 1918408 - Implement the nested declarations rule. r=dshin,webidl,smaug
I didn't put this behind a pref because it was a bit annoying to do with
the parser changes while keeping it fast, and because, at least nesting
wise, this is unlikely to cause compat issues.

There are some complexities for @scope, which I think I got right.

Fixed the tests not to depend on @scope necessarily per the discussion
in https://github.com/web-platform-tests/interop/issues/697.

Differential Revision: https://phabricator.services.mozilla.com/D222817
2024-09-19 20:23:22 +00:00

15 lines
610 B
Plaintext

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/.
*
* The origin of this IDL file is
* https://drafts.csswg.org/css-nesting-1/#the-cssnestrule
*/
[Exposed=Window]
interface CSSNestedDeclarations : CSSRule {
// CSSStyleDeclaration instead of CSSStyleProperties for now, see bug 1919582.
[SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
};