Skip to content

Commit 98c5dfe

Browse files
CanadaHonksvgeesus
authored andcommitted
[cssom-1] Merge CSSImportRule layer extensions from cascade-5
1 parent 84ead27 commit 98c5dfe

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

css-cascade-5/Overview.bs

-16
Original file line numberDiff line numberDiff 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">
19761960
The <code>CSSLayerBlockRule</code> interface</h3>
19771961

cssom-1/Overview.bs

+5
Original file line numberDiff line numberDiff 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

20602061
The <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+
20622067
Note: An <code>@import</code> at-rule always has an associated <a>CSS style sheet</a>.
20632068

20642069

0 commit comments

Comments
 (0)