Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions css-cascade-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1956,22 +1956,6 @@ Rolling Back Cascade Layers: the ''revert-layer'' keyword</h4>

<h2 id="layer-apis">Layer APIs</h2>

<h3 id='extensions-to-cssimportrule-interface'>
Extensions to the <code>CSSImportRule</code> interface</h3>

The <code>CSSImportRule</code> interface is extended as follows:

<pre class='idl'>
partial interface CSSImportRule {
readonly attribute CSSOMString? layerName;
};
</pre>

Its <dfn attribute for=CSSImportRule>layerName</dfn> attribute represents
the [=layer name=] declared in the at-rule itself,
and is an empty string if the layer is anonymous,
or null if the at-rule does not declare a layer.

<h3 id="the-csslayerblockrule-interface">
The <code>CSSLayerBlockRule</code> interface</h3>

Expand Down
5 changes: 5 additions & 0 deletions cssom-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2045,6 +2045,7 @@ interface CSSImportRule : CSSRule {
readonly attribute USVString href;
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
[SameObject] readonly attribute CSSStyleSheet styleSheet;
readonly attribute CSSOMString? layerName;
};
</pre>

Expand All @@ -2059,6 +2060,10 @@ attribute of the associated <a>CSS style sheet</a>.

The <dfn attribute for=CSSImportRule>styleSheet</dfn> attribute must return the associated <a>CSS style sheet</a>.

The <dfn attribute for=CSSImportRule>layerName</dfn> attribute must return the [=layer name=] declared in the at-rule itself,
or an empty string if the layer is anonymous,
or null if the at-rule does not declare a layer.

Note: An <code>@import</code> at-rule always has an associated <a>CSS style sheet</a>.


Expand Down