Skip to content

Commit d0b9cc1

Browse files
author
Simon Pieters
committed
[cssom] Update an example
1 parent 4eb23ae commit d0b9cc1

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

cssom/Overview.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,8 +1003,7 @@ <h4 id="the-cssstylesheet-interface"><span class="secno">6.1.2 </span>The <code
10031003
<li><p>If the rule <var>newRule</var> cannot be inserted into the specified <var>index</var> due to constraints specified
10041004
by <a href="#refsCSS">[CSS]</a>, then <a class="external" href="http://dom.spec.whatwg.org/#concept-throw" title="concept-throw">throw</a>
10051005
a <code class="external"><a href="http://dom.spec.whatwg.org/#hierarchyrequesterror">HierarchyRequestError</a></code> exception.</p>
1006-
<p class="note">For example, a CSS style sheet cannot contain more than one <code>@charset</code> rule, which,
1007-
if present, must be the first rule.</li>
1006+
<p class="note">For example, a CSS style sheet cannot contain an <code title="">@import</code> at-rule after a rule set.</li>
10081007
<li><p>Set <var>newRule</var><code>.parentStyleSheet</code> to <code>this</code> (i.e., this <code><a href="#cssstylesheet">CSSStyleSheet</a></code> instance object).</li>
10091008
<li><p>Insert rule <var>newRule</var> into <code>cssRules</code> at the zero-indexed position <var>index</var>.<p></li>
10101009
<li><p>Return <var>index</var>.</li>

cssom/Overview.src.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,8 +933,7 @@ <h4>The <code title>CSSStyleSheet</code> Interface</h4>
933933
<li><p>If the rule <var>newRule</var> cannot be inserted into the specified <var>index</var> due to constraints specified
934934
by <span data-anolis-ref>CSS</span>, then <span data-anolis-spec='dom' title='concept-throw'>throw</span>
935935
a <code data-anolis-spec='dom'>HierarchyRequestError</code> exception.</p>
936-
<p class='note'>For example, a CSS style sheet cannot contain more than one <code>@charset</code> rule, which,
937-
if present, must be the first rule.</p></li>
936+
<p class='note'>For example, a CSS style sheet cannot contain an <code title>@import</code> at-rule after a rule set.</p></li>
938937
<li><p>Set <var>newRule</var><code>.parentStyleSheet</code> to <code>this</code> (i.e., this <code>CSSStyleSheet</code> instance object).</p></li>
939938
<li><p>Insert rule <var>newRule</var> into <code>cssRules</code> at the zero-indexed position <var>index</var>.<p></li>
940939
<li><p>Return <var>index</var>.</p></li>

0 commit comments

Comments
 (0)