Skip to content

Commit b6a233e

Browse files
committed
[cssom] Allow CSSImportRule.styleSheet to be null.
Fixes w3c#8608
1 parent 9fd4636 commit b6a233e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cssom-1/Overview.bs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2044,7 +2044,7 @@ The <code>CSSImportRule</code> interface represents an <code>@import</code> at-r
20442044
interface CSSImportRule : CSSRule {
20452045
readonly attribute USVString href;
20462046
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
2047-
[SameObject] readonly attribute CSSStyleSheet styleSheet;
2047+
[SameObject] readonly attribute CSSStyleSheet? styleSheet;
20482048
readonly attribute CSSOMString? layerName;
20492049
readonly attribute CSSOMString? supportsText;
20502050
};
@@ -2059,7 +2059,7 @@ attribute of the associated <a>CSS style sheet</a>.
20592059
The <dfn attribute for=CSSImportRule>media</dfn> attribute must return the value of the {{StyleSheet/media}}
20602060
attribute of the associated <a>CSS style sheet</a>.
20612061

2062-
The <dfn attribute for=CSSImportRule>styleSheet</dfn> attribute must return the associated <a>CSS style sheet</a>.
2062+
The <dfn attribute for=CSSImportRule>styleSheet</dfn> attribute must return the associated <a>CSS style sheet</a>, if any, or null otherwise.
20632063

20642064
The <dfn attribute for=CSSImportRule>layerName</dfn> attribute must return the [=layer name=] declared in the at-rule itself,
20652065
or an empty string if the layer is anonymous,
@@ -2068,7 +2068,7 @@ or null if the at-rule does not declare a layer.
20682068
The <dfn attribute for=CSSImportRule>supportsText</dfn> attribute must return the <<supports-condition>> declared in the at-rule itself,
20692069
or null if the at-rule does not declare a supports condition.
20702070

2071-
Note: An <code>@import</code> at-rule always has an associated <a>CSS style sheet</a>.
2071+
Note: An <code>@import</code> at-rule might not have an associated <a>CSS style sheet</a> (e.g., if it has a non-matching <code>supports()</code> condition).
20722072

20732073

20742074
### The {{CSSGroupingRule}} Interface ### {#the-cssgroupingrule-interface}

0 commit comments

Comments
 (0)