mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Note that `StyleRule` may not have the `CssRules` readily available, they may need to be created. So the previous approach of providing `CSSGroupingRule` with the `CssRules` is no good: it would require writing them in advance, just in case they end up being used. Therefore, this removes the `CSSGroupingRule::rules` field. Instead, they are lazily obtained in `CSSGroupingRule::rulelist()` by downcasting and calling the appropriate method for the subclass. Testing: covered by WPT Fixes: #36245 Signed-off-by: Oriol Brufau <obrufau@igalia.com>
10 lines
450 B
Text
10 lines
450 B
Text
/* 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/. */
|
|
|
|
// https://drafts.csswg.org/cssom/#the-cssstylerule-interface
|
|
[Exposed=Window]
|
|
interface CSSStyleRule : CSSGroupingRule {
|
|
attribute DOMString selectorText;
|
|
[SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
|
|
};
|