Skip to content

Commit 1dfd55f

Browse files
committed
fix wording for CSSStyleSheet members
1 parent 480fa5b commit 1dfd55f

2 files changed

Lines changed: 47 additions & 42 deletions

File tree

cssom/Overview.html

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,40 +1743,42 @@ <h4 id=the-cssstylesheet-interface><span class=secno>7.1.1. </span>The
17431743

17441744
<pre
17451745
class=idl>interface <dfn id=cssstylesheet>CSSStyleSheet</dfn> : <a href="#stylesheet">StyleSheet</a> {
1746-
readonly attribute <a href="#cssrule">CSSRule</a> <a href="#cssstylesheet-ownerrule">ownerRule</a>;
1747-
readonly attribute <a href="#cssrulelist">CSSRuleList</a> <a href="#cssstylesheet-cssrules" title=cssstylesheet-cssrules>cssRules</a>;
1748-
unsigned long <a href="#cssstylesheet-insertrule" title=cssstylesheet-insertrule>insertRule</a>(DOMString <var>rule</var>, unsigned long <var>index</var>);
1749-
void <a href="#cssstylesheet-deleterule" title=cssstylesheet-deleterule>deleteRule</a>(unsigned long <var>index</var>);
1746+
readonly attribute <a href="#cssrule">CSSRule</a> <a href="#dom-cssstylesheet-ownerrule" title=dom-CSSStyleSheet-ownerRule>ownerRule</a>;
1747+
readonly attribute <a href="#cssrulelist">CSSRuleList</a> <a href="#dom-cssstylesheet-cssrules" title=dom-CSSStyleSheet-cssRules>cssRules</a>;
1748+
unsigned long <a href="#dom-cssstylesheet-insertrule" title=dom-CSSStyleSheet-insertRule>insertRule</a>(DOMString <var>rule</var>, unsigned long <var>index</var>);
1749+
void <a href="#dom-cssstylesheet-deleterule" title=dom-CSSStyleSheet-deleteRule>deleteRule</a>(unsigned long <var>index</var>);
17501750
};</pre>
17511751

1752-
<p>The <dfn id=cssstylesheet-ownerrule><code>ownerRule</code></dfn>
1753-
attribute <em class=ct>must</em> return the <a
1754-
href="#style-sheet-parent-rule">style sheet parent rule</a>.
1752+
<p>The <dfn id=dom-cssstylesheet-ownerrule
1753+
title=dom-CSSStyleSheet-ownerRule><code>ownerRule</code></dfn> attribute
1754+
<em class=ct>must</em> return the <a href="#style-sheet-parent-rule">style
1755+
sheet parent rule</a>.
17551756

1756-
<p>The <dfn id=cssstylesheet-cssrules
1757-
title=cssstylesheet-cssrules><code>cssRules</code></dfn> attribute <em
1757+
<p>The <dfn id=dom-cssstylesheet-cssrules
1758+
title=dom-CSSStyleSheet-cssRules><code>cssRules</code></dfn> attribute <em
17581759
class=ct>must</em> return a <code><a
17591760
href="#cssrulelist">CSSRuleList</a></code> object representing the <a
17601761
href="#style-sheet-rules">style sheet rules</a>.
17611762

17621763
<p class=note>CSS rules that were dropped during parsing can not be found
17631764
using APIs described by this specification.
17641765

1765-
<p>The <dfn id=cssstylesheet-insertrule
1766-
title=cssstylesheet-insertrule><code>insertRule(<var title="">rule</var>,
1767-
<var title="">index</var>)</code></dfn> method, when invoked, <em
1768-
class=ct>must</em> <span>insert a statement</span> where <var>rule</var>
1769-
is <var>rule</var>, <var>index</var> is <var>index</var> and <var>rule
1770-
list</var> is <code title=cssstylesheet-cssrules><a
1771-
href="#cssstylesheet-cssrules">cssRules</a></code>.
1766+
<p>The <dfn id=dom-cssstylesheet-insertrule
1767+
title=dom-CSSStyleSheet-insertRule><code>insertRule(<var
1768+
title="">rule</var>, <var title="">index</var>)</code></dfn> method <em
1769+
class=ct>must</em> <a href="#insert-a-css-rule">insert a CSS rule</a> <var
1770+
title="">rule</var> the in CSS rule list returned by <code
1771+
title=dom-CSSStyleSheet-cssRules><a
1772+
href="#dom-cssstylesheet-cssrules">cssRules</a></code> at <var
1773+
title="">index</var>.
17721774

1773-
<p>The <dfn id=cssstylesheet-deleterule
1774-
title=cssstylesheet-deleterule><code>deleteRule(<var
1775-
title="">index</var>)</code></dfn> method, when invoked, <em
1776-
class=ct>must</em> <span>remove a statement</span> where <var>index</var>
1777-
is <var>index</var> and <var>rule list</var> is <code
1778-
title=dom-CSSMediaRule-cssRules><a
1779-
href="#dom-cssmediarule-cssrules">cssRules</a></code>.
1775+
<p>The <dfn id=dom-cssstylesheet-deleterule
1776+
title=dom-CSSStyleSheet-deleteRule><code>deleteRule(<var
1777+
title="">index</var>)</code></dfn> method <em class=ct>must</em> <a
1778+
href="#remove-a-css-rule">remove a CSS rule</a> from the CSS rule list
1779+
returned by <code title=dom-CSSStyleSheet-cssRules><a
1780+
href="#dom-cssstylesheet-cssrules">cssRules</a></code> at <var
1781+
title="">index</var>.
17801782

17811783
<h3 id=css-rules><span class=secno>7.2. </span>CSS Rules</h3>
17821784

@@ -2101,8 +2103,9 @@ <h4 id=css-import-rule><span class=secno>7.2.4. </span>CSS <code
21012103
<code><a href="#cssstylesheet">CSSStyleSheet</a></code> object.
21022104

21032105
<p class=note>If loading of the style sheet fails its <code
2104-
title=dom-CSSStyleSheet-cssRules>cssRules</code> list is simply empty.
2105-
I.e. an <code>@import</code> rule always has an associated <code><a
2106+
title=dom-CSSStyleSheet-cssRules><a
2107+
href="#dom-cssstylesheet-cssrules">cssRules</a></code> list is simply
2108+
empty. I.e. an <code>@import</code> rule always has an associated <code><a
21062109
href="#cssstylesheet">CSSStyleSheet</a></code> object.
21072110

21082111
<h4 id=css-media-rule><span class=secno>7.2.5. </span>CSS <code

cssom/Overview.src.html

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,38 +1407,40 @@ <h4>The <code title="">CSSStyleSheet</code> Interface</h4>
14071407
-->
14081408

14091409
<pre class="idl">interface <dfn>CSSStyleSheet</dfn> : <span>StyleSheet</span> {
1410-
readonly attribute <span>CSSRule</span> <span>ownerRule</span>;
1411-
readonly attribute <span>CSSRuleList</span> <span title="cssstylesheet-cssrules">cssRules</span>;
1412-
unsigned long <span title="cssstylesheet-insertrule">insertRule</span>(DOMString <var>rule</var>, unsigned long <var>index</var>);
1413-
void <span title="cssstylesheet-deleterule">deleteRule</span>(unsigned long <var>index</var>);
1410+
readonly attribute <span>CSSRule</span> <span title="dom-CSSStyleSheet-ownerRule">ownerRule</span>;
1411+
readonly attribute <span>CSSRuleList</span> <span title="dom-CSSStyleSheet-cssRules">cssRules</span>;
1412+
unsigned long <span title="dom-CSSStyleSheet-insertRule">insertRule</span>(DOMString <var>rule</var>, unsigned long <var>index</var>);
1413+
void <span title="dom-CSSStyleSheet-deleteRule">deleteRule</span>(unsigned long <var>index</var>);
14141414
};</pre>
14151415

1416-
<p>The <dfn id="cssstylesheet-ownerrule"><code>ownerRule</code></dfn>
1416+
<p>The
1417+
<dfn id="dom-cssstylesheet-ownerrule" title="dom-CSSStyleSheet-ownerRule"><code>ownerRule</code></dfn>
14171418
attribute <em class="ct">must</em> return the
14181419
<span>style sheet parent rule</span>.</p>
14191420

14201421
<p>The
1421-
<dfn id="cssstylesheet-cssrules" title="cssstylesheet-cssrules"><code>cssRules</code></dfn>
1422+
<dfn id="dom-cssstylesheet-cssrules" title="dom-CSSStyleSheet-cssRules"><code>cssRules</code></dfn>
14221423
attribute <em class="ct">must</em> return a <code>CSSRuleList</code>
14231424
object representing the <span>style sheet rules</span>.</p>
14241425

14251426
<p class="note">CSS rules that were dropped during parsing can not be
14261427
found using APIs described by this specification.</p>
14271428

14281429
<p>The
1429-
<dfn id="cssstylesheet-insertrule" title="cssstylesheet-insertrule"><code>insertRule(<var title="">rule</var>,
1430-
<var title="">index</var>)</code></dfn> method, when invoked,
1431-
<em class="ct">must</em> <span>insert a statement</span> where <var>rule</var>
1432-
is <var>rule</var>, <var>index</var> is <var>index</var> and <var>rule
1433-
list</var> is <code title="cssstylesheet-cssrules">cssRules</code>.</p>
1430+
<dfn id="dom-cssstylesheet-insertrule" title="dom-CSSStyleSheet-insertRule"><code>insertRule(<var title="">rule</var>, <var title="">index</var>)</code></dfn>
1431+
method <em class="ct">must</em> <span>insert a CSS rule</span>
1432+
<var title="">rule</var> the in CSS rule list returned by
1433+
<code title="dom-CSSStyleSheet-cssRules">cssRules</code> at
1434+
<var title="">index</var>.</p>
14341435

14351436
<p>The
1436-
<dfn id="cssstylesheet-deleterule" title="cssstylesheet-deleterule"><code>deleteRule(<var title="">index</var>)</code></dfn>
1437-
method, when invoked, <em class="ct">must</em> <span>remove a statement</span>
1438-
where <var>index</var> is <var>index</var> and <var>rule list</var> is
1439-
<code title="dom-CSSMediaRule-cssRules">cssRules</code>.</p>
1440-
1441-
1437+
<dfn id="dom-cssstylesheet-deleterule" title="dom-CSSStyleSheet-deleteRule"><code>deleteRule(<var title="">index</var>)</code></dfn>
1438+
method <em class="ct">must</em> <span>remove a CSS rule</span> from the
1439+
CSS rule list returned by
1440+
<code title="dom-CSSStyleSheet-cssRules">cssRules</code> at
1441+
<var title="">index</var>.</p>
1442+
1443+
14421444
<h3>CSS Rules</h3>
14431445

14441446
<p>To <dfn>parse a CSS rule</dfn> ...</p>

0 commit comments

Comments
 (0)