mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
...instead of returning the one from its associated style sheet.
This reverts 848a250b29 where I made
`CSSImportRule.media` nullable.
CSSImportRule may not have an associated style sheet, because of not
matching a supports condition, or just failing to load the URL.
Regardless of whether we do or not, the expected (non-spec) behaviour
is that we should return a MediaList always, which matches the media
queries specified on the `@import` rule.
14 lines
521 B
Plaintext
14 lines
521 B
Plaintext
#import <CSS/CSSRule.idl>
|
|
#import <CSS/CSSStyleSheet.idl>
|
|
#import <CSS/MediaList.idl>
|
|
|
|
// https://drafts.csswg.org/cssom/#the-cssimportrule-interface
|
|
[Exposed=Window]
|
|
interface CSSImportRule : CSSRule {
|
|
readonly attribute USVString href;
|
|
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
|
|
[SameObject, ImplementedAs=style_sheet_for_bindings] readonly attribute CSSStyleSheet? styleSheet;
|
|
readonly attribute CSSOMString? layerName;
|
|
readonly attribute CSSOMString? supportsText;
|
|
};
|