mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implement CSSNestedDeclarations (#36248)
This is the CSSOM interface that represents a nested declarations rule. https://drafts.csswg.org/css-nesting/#the-cssnestrule Testing: `/_mozilla/mozilla/interfaces.https.html`. And once `CSSStyleRule` becomes a `CSSGroupingRule` subclass, this will be further covered by `/css/css-nestting/`. This is part of #36245 Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
e8d5a019a4
commit
bc6926d1fe
7 changed files with 120 additions and 2 deletions
|
@ -0,0 +1,13 @@
|
|||
/* 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 #36260.
|
||||
[SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue