You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The object's <aclass="external" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices">supported property indices</a> are the numbers in the range zero to one less than the number of <span>style sheets</span> represented by the collection. If there are no such <span>style sheets</span>, then there are no <aclass="external" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices">supported property indices</a>.
1170
1170
1171
-
<p>The <dfnid="dom-stylesheetlist-item" title="dom-StyleSheetList-item"><code>item(<vartitle="">index</var>)</code></dfn> method must return the <vartitle="">index</var>th <span>style sheet</span> in the collection. If there is no <vartitle="">index</var>th object in the collection, then the method must return null.
1171
+
<p>The <dfnid="dom-stylesheetlist-item" title="dom-StyleSheetList-item"><code>item(<vartitle="">index</var>)</code></dfn> method must return the <vartitle="">index</var>th <ahref="#css-style-sheet">CSS style sheet</a> in the collection. If there is no <vartitle="">index</var>th object in the collection, then the method must return null.
1172
1172
1173
1173
<p>The <dfnid="dom-stylesheetlist-length" title="dom-StyleSheetList-length"><code>length</code></dfn> attribute must return the number of <span>style sheets</span> represented by the collection.
<p>The <dfnid="associated-style-sheet">associated style sheet</dfn> of a node is the <span>style sheet</span> in the list of
1429
+
<p>The <dfnid="associated-style-sheet">associated style sheet</dfn> of a node is the <ahref="#css-style-sheet">CSS style sheet</a> in the list of
1430
1430
<ahref="#document-style-sheets">document style sheets</a> of which the <ahref="#style-sheet-owner-node">style sheet owner node</a> implements the <code><ahref="#linkstyle">LinkStyle</a></code> interface.</p>
<p>The <dfnid="dom-cssimportrule-href" title="dom-CSSImportRule-href"><code>href</code></dfn> attribute must return the <aclass="external" href="http://url.spec.whatwg.org/#concept-url" title="concept-url">URL</a> specified by the <code>@import</code> at-rule.</p>
1910
1910
<pclass="note">To get the resolved <aclass="external" href="http://url.spec.whatwg.org/#concept-url" title="concept-url">URL</a> use the <codetitle="dom-StyleSheet-href"><ahref="#dom-stylesheet-href">href</a></code>
1911
-
attribute of the associated <span>style sheet</span>.</p>
1911
+
attribute of the associated <ahref="#css-style-sheet">CSS style sheet</a>.</p>
1912
1912
1913
1913
<p>The <dfnid="dom-cssimportrule-media" title="dom-CSSImportRule-media"><code>media</code></dfn> attribute must return the value of the <codetitle="dom-StyleSheet-media"><ahref="#dom-stylesheet-media">media</a></code>
1914
-
attribute of the associated <span>style sheet</span>.</p>
1914
+
attribute of the associated <ahref="#css-style-sheet">CSS style sheet</a>.</p>
1915
1915
1916
-
<p>The <dfnid="dom-cssimportrule-stylesheet" title="dom-CSSImportRule-styleSheet"><code>styleSheet</code></dfn> attribute must return the associated <span>style sheet</span>.</p>
1916
+
<p>The <dfnid="dom-cssimportrule-stylesheet" title="dom-CSSImportRule-styleSheet"><code>styleSheet</code></dfn> attribute must return the associated <ahref="#css-style-sheet">CSS style sheet</a>.</p>
1917
1917
<pclass="note">If loading of the style sheet fails its <codetitle="dom-CSSStyleSheet-cssRules"><ahref="#dom-cssstylesheet-cssrules">cssRules</a></code>
1918
-
list is simply empty, i.e., an <code>@import</code> at-rule always has an associated <span>style sheet</span>.</p>
1918
+
list is simply empty, i.e., an <code>@import</code> at-rule always has an associated <ahref="#css-style-sheet">CSS style sheet</a>.</p>
<p>On setting, the <codetitle="dom-CSSNamespaceRule-namespaceURI"><ahref="#dom-cssnamespacerule-namespaceuri">namespaceURI</a></code> attribute must run the following steps:</p>
1994
1994
1995
1995
<ol>
1996
-
<li><p>Let <vartitle="">style sheet</var> be the value returned by <codetitle="dom-CSSRule-parentStyleSheet"><ahref="#dom-cssrule-parentstylesheet">parentStyleSheet</a></code>.
1997
-
<li><p>Let <vartitle="">list</var> be the value returned by <codetitle="dom-CSSStyleSheet-cssRules"><ahref="#dom-cssstylesheet-cssrules">cssRules</a></code> of <vartitle="">style sheet</var>, or
1998
-
null if <vartitle="">style sheet</var> is null.
1996
+
<li><p>Let <vartitle="">CSS style sheet</var> be the value returned by <codetitle="dom-CSSRule-parentStyleSheet"><ahref="#dom-cssrule-parentstylesheet">parentStyleSheet</a></code>.
1997
+
<li><p>Let <vartitle="">list</var> be the value returned by <codetitle="dom-CSSStyleSheet-cssRules"><ahref="#dom-cssstylesheet-cssrules">cssRules</a></code> of <vartitle="">CSS style sheet</var>, or
1998
+
null if <vartitle="">CSS style sheet</var> is null.
1999
1999
<li><p>If <vartitle="">list</var> is not null and contains anything other than
2000
2000
<codetitle="">@charset</code> at-rules, <codetitle="">@import</code> at-rules, and <codetitle="">@namespace</code> at-rules,
2001
2001
<aclass="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> an <codeclass="external"><ahref="http://dom.spec.whatwg.org/#invalidstateerror">InvalidStateError</a></code> exception.
<p>On setting, the <codetitle="dom-CSSNamespaceRule-prefix"><ahref="#dom-cssnamespacerule-prefix">prefix</a></code> attribute must run the following steps:</p>
2009
2009
2010
2010
<ol>
2011
-
<li><p>Let <vartitle="">style sheet</var> be the value returned by <codetitle="dom-CSSRule-parentStyleSheet"><ahref="#dom-cssrule-parentstylesheet">parentStyleSheet</a></code>.
2012
-
<li><p>Let <vartitle="">list</var> be the value returned by <codetitle="dom-CSSStyleSheet-cssRules"><ahref="#dom-cssstylesheet-cssrules">cssRules</a></code> of <vartitle="">style sheet</var>, or
2013
-
null if <vartitle="">style sheet</var> is null.
2011
+
<li><p>Let <vartitle="">CSS style sheet</var> be the value returned by <codetitle="dom-CSSRule-parentStyleSheet"><ahref="#dom-cssrule-parentstylesheet">parentStyleSheet</a></code>.
2012
+
<li><p>Let <vartitle="">list</var> be the value returned by <codetitle="dom-CSSStyleSheet-cssRules"><ahref="#dom-cssstylesheet-cssrules">cssRules</a></code> of <vartitle="">CSS style sheet</var>, or
2013
+
null if <vartitle="">CSS style sheet</var> is null.
2014
2014
<li><p>If <vartitle="">list</var> is not null and contains anything other than
2015
2015
<codetitle="">@charset</code> at-rules, <codetitle="">@import</code> at-rules, and <codetitle="">@namespace</code> at-rules,
2016
2016
<aclass="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a> an <codeclass="external"><ahref="http://dom.spec.whatwg.org/#invalidstateerror">InvalidStateError</a></code> exception.
0 commit comments