File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -1956,22 +1956,6 @@ Rolling Back Cascade Layers: the ''revert-layer'' keyword</h4>
19561956
19571957<h2 id="layer-apis">Layer APIs</h2>
19581958
1959- <h3 id='extensions-to-cssimportrule-interface'>
1960- Extensions to the <code>CSSImportRule</code> interface</h3>
1961-
1962- The <code> CSSImportRule</code> interface is extended as follows:
1963-
1964- <pre class='idl'>
1965- partial interface CSSImportRule {
1966- readonly attribute CSSOMString? layerName;
1967- };
1968- </pre>
1969-
1970- Its <dfn attribute for=CSSImportRule>layerName</dfn> attribute represents
1971- the [=layer name=] declared in the at-rule itself,
1972- and is an empty string if the layer is anonymous,
1973- or null if the at-rule does not declare a layer.
1974-
19751959<h3 id="the-csslayerblockrule-interface">
19761960The <code>CSSLayerBlockRule</code> interface</h3>
19771961
Original file line number Diff line number Diff line change @@ -2045,6 +2045,7 @@ interface CSSImportRule : CSSRule {
20452045 readonly attribute USVString href;
20462046 [SameObject, PutForwards=mediaText] readonly attribute MediaList media;
20472047 [SameObject] readonly attribute CSSStyleSheet styleSheet;
2048+ readonly attribute CSSOMString? layerName;
20482049};
20492050</pre>
20502051
@@ -2059,6 +2060,10 @@ attribute of the associated <a>CSS style sheet</a>.
20592060
20602061The <dfn attribute for=CSSImportRule>styleSheet</dfn> attribute must return the associated <a>CSS style sheet</a> .
20612062
2063+ The <dfn attribute for=CSSImportRule>layerName</dfn> attribute may return the layer name declared in the at-rule itself,
2064+ or an empty string if the layer is anonymous,
2065+ or null if the at-rule does not declare a layer.
2066+
20622067Note: An <code> @import</code> at-rule always has an associated <a>CSS style sheet</a> .
20632068
20642069
You can’t perform that action at this time.
0 commit comments