File tree 2 files changed +5
-16
lines changed
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>
1956
1956
1957
1957
<h2 id="layer-apis">Layer APIs</h2>
1958
1958
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
-
1975
1959
<h3 id="the-csslayerblockrule-interface">
1976
1960
The <code>CSSLayerBlockRule</code> interface</h3>
1977
1961
Original file line number Diff line number Diff line change @@ -2045,6 +2045,7 @@ interface CSSImportRule : CSSRule {
2045
2045
readonly attribute USVString href;
2046
2046
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
2047
2047
[SameObject] readonly attribute CSSStyleSheet styleSheet;
2048
+ readonly attribute CSSOMString? layerName;
2048
2049
};
2049
2050
</pre>
2050
2051
@@ -2059,6 +2060,10 @@ attribute of the associated <a>CSS style sheet</a>.
2059
2060
2060
2061
The <dfn attribute for=CSSImportRule>styleSheet</dfn> attribute must return the associated <a>CSS style sheet</a> .
2061
2062
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
+
2062
2067
Note: An <code> @import</code> at-rule always has an associated <a>CSS style sheet</a> .
2063
2068
2064
2069
You can’t perform that action at this time.
0 commit comments