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 <dfnid="dom-cssstylesheet-ownerrule" title="dom-CSSStyleSheet-ownerRule"><code>ownerRule</code></dfn> attribute must return the <ahref="#concept-css-style-sheet-owner-css-rule" title="concept-css-style-sheet-owner-css-rule">owner
1007
-
CSS rule</a> or null if none. If a value other than null is ever returned, than that same value must always be returned on each get access.</p>
1007
+
CSS rule</a>. If a value other than null is ever returned, then that same value must always be returned on each get access.</p>
1008
1008
1009
1009
<p>The <dfnid="dom-cssstylesheet-cssrules" title="dom-CSSStyleSheet-cssRules"><code>cssRules</code></dfn> attribute must follow these steps:
<li><p>Replace the current object with <var>new rule</var>.</li>
1933
1933
</ol>
1934
1934
1935
-
<p>The <dfnid="dom-cssrule-parentrule" title="dom-CSSRule-parentRule"><code>parentRule</code></dfn> attribute must return the nearest enclosing rule of the current rule or null if
1936
-
there is none. If a value other than null is ever returned, than that same value must always be returned on each get access.</p>
1935
+
<p>The <dfnid="dom-cssrule-parentrule" title="dom-CSSRule-parentRule"><code>parentRule</code></dfn> attribute must return the <ahref="#concept-css-rule-parent-css-rule" title="concept-css-rule-parent-css-rule">parent CSS
1936
+
rule</a>.</p>
1937
1937
<pclass="note">For example, <codetitle="">@media</code> can enclose a rule, in which case <codetitle="dom-CSSRule-parentRule"><ahref="#dom-cssrule-parentrule">parentRule</a></code> would
1938
-
be non-null; in cases where there is no enclosing rule, <codetitle="dom-CSSRule-parentRule"><ahref="#dom-cssrule-parentrule">ownerRule</a></code> will be null.</p>
1938
+
be non-null; in cases where there is no enclosing rule, <codetitle="dom-CSSRule-parentRule"><ahref="#dom-cssrule-parentrule">parentRule</a></code> will be null.</p>
1939
1939
1940
-
<p>The <dfnid="dom-cssrule-parentstylesheet" title="dom-CSSRule-parentStyleSheet"><code>parentStyleSheet</code></dfn> attribute must return the<code><ahref="#cssstylesheet">CSSStyleSheet</a></code> object that contains the
1941
-
current rule or null if there is none.</p>
1940
+
<p>The <dfnid="dom-cssrule-parentstylesheet" title="dom-CSSRule-parentStyleSheet"><code>parentStyleSheet</code></dfn> attribute must return the
<pclass="note">The only circumstance where null is returned when a rule has been <ahref="#remove-a-css-rule" title="remove a CSS rule">removed</a>.</p>
1943
1943
<pclass="note">Removing a <codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#node">Node</a></code> that implements the <code><ahref="#linkstyle">LinkStyle</a></code> interface from a
1944
1944
<codeclass="external" data-anolis-spec="dom"><ahref="http://dom.spec.whatwg.org/#document">Document</a></code> instance does not (by itself) cause the <code><ahref="#cssstylesheet">CSSStyleSheet</a></code> referenced by a <code><ahref="#cssrule">CSSRule</a></code> to be
@@ -1961,7 +1961,8 @@ <h4 id="the-cssstylerule-interface"><span class="secno">6.4.3 </span>The <code t
<p>The <dfnid="dom-cssstylerule-selectortext" title="dom-CSSStyleRule-selectorText"><code>selectorText</code></dfn> attribute, on getting, must return the result of
<p>The <dfntitle=dom-CSSStyleSheet-ownerRule><code>ownerRule</code></dfn> attribute must return the <spantitle=concept-css-style-sheet-owner-css-rule>owner
930
-
CSS rule</span> or null if none. If a value other than null is ever returned, than that same value must always be returned on each get access.</p>
930
+
CSS rule</span>. If a value other than null is ever returned, then that same value must always be returned on each get access.</p>
931
931
932
932
<p>The <dfntitle=dom-CSSStyleSheet-cssRules><code>cssRules</code></dfn> attribute must follow these steps:
933
933
@@ -1648,12 +1648,12 @@ <h3>CSS Rules</h3>
1648
1648
This item is initialized when a rule is created, and may change over the lifetime of the rule.</p></dd>
<li><p>Replace the current object with <var>new rule</var>.</p></li>
1856
1856
</ol>
1857
1857
1858
-
<p>The <dfntitle=dom-CSSRule-parentRule><code>parentRule</code></dfn> attribute must return the nearest enclosing rule of the current rule or null if
1859
-
there is none. If a value other than null is ever returned, than that same value must always be returned on each get access.</p>
1858
+
<p>The <dfntitle=dom-CSSRule-parentRule><code>parentRule</code></dfn> attribute must return the <spantitle=concept-css-rule-parent-css-rule>parent CSS
1859
+
rule</span>.</p>
1860
1860
<pclass='note'>For example, <codetitle>@media</code> can enclose a rule, in which case <codetitle=dom-CSSRule-parentRule>parentRule</code> would
1861
-
be non-null; in cases where there is no enclosing rule, <codetitle=dom-CSSRule-parentRule>ownerRule</code> will be null.</p>
1861
+
be non-null; in cases where there is no enclosing rule, <codetitle=dom-CSSRule-parentRule>parentRule</code> will be null.</p>
1862
1862
1863
-
<p>The <dfntitle=dom-CSSRule-parentStyleSheet><code>parentStyleSheet</code></dfn> attribute must return the<code>CSSStyleSheet</code> object that contains the
1864
-
current rule or null if there is none.</p>
1863
+
<p>The <dfntitle=dom-CSSRule-parentStyleSheet><code>parentStyleSheet</code></dfn> attribute must return the
<pclass='note'>The only circumstance where null is returned when a rule has been <spantitle="remove a CSS rule">removed</span>.</p>
1866
1866
<pclass='note'>Removing a <codedata-anolis-spec=dom>Node</code> that implements the <code>LinkStyle</code> interface from a
1867
1867
<codedata-anolis-spec=dom>Document</code> instance does not (by itself) cause the <code>CSSStyleSheet</code> referenced by a <code>CSSRule</code> to be
0 commit comments