Skip to content

Commit 5baf928

Browse files
committed
remove Supplemental in favor of partial; xref more
1 parent f134c30 commit 5baf928

3 files changed

Lines changed: 71 additions & 65 deletions

File tree

cssom/Overview.html

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -969,14 +969,15 @@ <h4 id="the-cssstylesheet-interface"><span class="secno">5.1.2 </span>The <code
969969
<h3 id="style-sheet-collections"><span class="secno">5.2 </span>Style Sheet Collections</h3>
970970

971971
<p>Below various new concepts are defined that are associated with each
972-
<code>Document</code> object.</p>
972+
<code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code> object.</p>
973973

974-
<p>Each <code>Document</code> has an associated list of zero or more
974+
<p>Each <code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code> has an associated list of zero or more
975975
<a href="#style-sheet" title="style sheet">style sheets</a>, named the
976976
<dfn id="document-style-sheets">document style sheets</dfn>. This is
977977
an ordered list that contains all
978978
<a href="#style-sheet" title="style sheet">style sheets</a> associated with the
979-
<code>Document</code>, in <span>tree order</span>, with
979+
<code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code>, in
980+
<a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#tree-order">tree order</a>, with
980981
<a href="#style-sheet" title="style sheet">style sheets</a> created from HTTP
981982
<code title="http-link">Link</code> headers first, if any, in header
982983
order.</p>
@@ -1149,7 +1150,7 @@ <h4 id="the-stylesheetlist-sequence"><span class="secno">5.2.2 </span>The <code
11491150
objects currently in the list.</p>
11501151
11511152
<p>The
1152-
<dfn id="stylesheetlist-item" title="stylesheetlist-item"><code>item(<var title="">index</var>)</code></dfn>
1153+
<dfn title="stylesheetlist-item"><code>item(<var title="">index</var>)</code></dfn>
11531154
method, when invoked, must return the
11541155
<code>StyleSheet</code> object in the list given by <var title="">index</var>, or
11551156
null, if <var title="">index</var> is greater than or equal to the
@@ -1160,7 +1161,7 @@ <h4 id="the-stylesheetlist-sequence"><span class="secno">5.2.2 </span>The <code
11601161
<h4 id="extensions-to-the-document-interface"><span class="secno">5.2.3 </span>Extensions to the <code title="">Document</code> Interface</h4>
11611162

11621163
<!-- https://bugzilla.mozilla.org/show_bug.cgi?id=200930 (FIXED) -->
1163-
<pre class="idl">[Supplemental] interface <span>Document</span> {
1164+
<pre class="idl">partial interface <a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a> {
11641165
readonly attribute <a href="#stylesheetlist">StyleSheetList</a> <a href="#dom-document-stylesheets" title="dom-Document-styleSheets">styleSheets</a>;
11651166
attribute DOMString? <a href="#dom-document-selectedStyleSheetSet" title="dom-Document-selectedStyleSheetSet">selectedStyleSheetSet</a>;
11661167
readonly attribute DOMString? <a href="#dom-document-lastStyleSheetSet" title="dom-Document-lastStyleSheetSet">lastStyleSheetSet</a>;
@@ -3061,19 +3062,20 @@ <h3 id="the-elementcssinlinestyle-interface"><span class="secno">6.1 </span>The
30613062

30623063
<h3 id="extensions-to-the-window-interface"><span class="secno">6.2 </span>Extensions to the <code title="">Window</code> Interface</h3>
30633064

3064-
<pre class="idl">[Supplemental] interface <span>Window</span> {
3065-
<a href="#cssstyledeclaration">CSSStyleDeclaration</a> <a href="#dom-window-getcomputedstyle" title="dom-Window-getComputedStyle">getComputedStyle</a>(Element <var title="">elt</var>);
3066-
<a href="#cssstyledeclaration">CSSStyleDeclaration</a> <a href="#dom-window-getcomputedstyle" title="dom-Window-getComputedStyle">getComputedStyle</a>(Element <var title="">elt</var>, DOMString <var title="">pseudoElt</var>);
3065+
<pre class="idl">partial interface <a class="external" href="http://www.whatwg.org/html/#window">Window</a> {
3066+
<a href="#cssstyledeclaration">CSSStyleDeclaration</a> <a href="#dom-window-getcomputedstyle" title="dom-Window-getComputedStyle">getComputedStyle</a>(<a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#element">Element</a> <var title="">elt</var>);
3067+
<a href="#cssstyledeclaration">CSSStyleDeclaration</a> <a href="#dom-window-getcomputedstyle" title="dom-Window-getComputedStyle">getComputedStyle</a>(<a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#element">Element</a> <var title="">elt</var>, DOMString <var title="">pseudoElt</var>);
30673068
};</pre>
30683069

30693070
<p>The
30703071
<dfn id="dom-window-getcomputedstyle" title="dom-Window-getComputedStyle"><code>getComputedStyle(<var title="">elt</var>, <var title="">pseudoElt</var>)</code></dfn>
30713072
method must run these steps:</p>
30723073

30733074
<ol>
3074-
<li><p>Let <var title="">doc</var> be the <code>Document</code>
3075-
associated with the <code>Window</code> object on which the method was
3076-
invoked.</li>
3075+
<li><p>Let <var title="">doc</var> be the
3076+
<code class="external"><a href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#document">Document</a></code>
3077+
associated with the <code class="external"><a href="http://www.whatwg.org/html/#window">Window</a></code> object on
3078+
which the method was invoked.</li>
30773079

30783080
<li><p>Let <var title="">obj</var> be <var title="">elt</var>.</li>
30793081

cssom/Overview.src.html

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ <h3>The <code title="">MediaList</code> Interface</h3>
396396
};</pre>
397397

398398
<p>The
399-
<dfn id="dom-medialist-mediatext" title="dom-MediaList-mediaText"><code>mediaText</code></dfn>
399+
<dfn title="dom-MediaList-mediaText"><code>mediaText</code></dfn>
400400
attribute, on getting, must return a
401401
<span title="serialize a media query list">serialization</span> of
402402
the <span>collection of media queries</span>.</p>
@@ -416,12 +416,12 @@ <h3>The <code title="">MediaList</code> Interface</h3>
416416
</ol>
417417

418418
<p>The
419-
<dfn id="dom-medialist-length" title="dom-MediaList-length"><code>length</code></dfn>
419+
<dfn title="dom-MediaList-length"><code>length</code></dfn>
420420
attribute must return the number of media queries in
421421
the <span>collection of media queries</span>.</p>
422422

423423
<p>The
424-
<dfn id="dom-medialist-item" title="dom-MediaList-item"><code>item(<var title="">index</var>)</code></dfn>
424+
<dfn title="dom-MediaList-item"><code>item(<var title="">index</var>)</code></dfn>
425425
method must return the media query in the
426426
<span>collection of media queries</span> given by
427427
<var title="">index</var>, or null, if <var title="">index</var> is
@@ -430,7 +430,7 @@ <h3>The <code title="">MediaList</code> Interface</h3>
430430
<!-- XXX need consistency here WebIDL? list of media queries? -->
431431

432432
<p>The
433-
<dfn id="dom-medialist-appendmedium" title="dom-MediaList-appendmedium"><code>appendMedium(<var title="">medium</var>)</code></dfn>
433+
<dfn title="dom-MediaList-appendmedium"><code>appendMedium(<var title="">medium</var>)</code></dfn>
434434
method must run these steps:</p>
435435

436436
<ol>
@@ -450,7 +450,7 @@ <h3>The <code title="">MediaList</code> Interface</h3>
450450
</ol>
451451

452452
<p>The
453-
<dfn id="dom-medialist-deletemedium" title="dom-MediaList-deletemedium"><code>deleteMedium(<var title="">medium</var>)</code></dfn>
453+
<dfn title="dom-MediaList-deletemedium"><code>deleteMedium(<var title="">medium</var>)</code></dfn>
454454
method must run these steps:</p>
455455

456456
<ol>
@@ -806,37 +806,37 @@ <h4>The <code title="">StyleSheet</code> Interface</h4>
806806
};</pre>
807807

808808
<p>The
809-
<dfn id="dom-stylesheet-type" title="dom-StyleSheet-type"><code>type</code></dfn>
809+
<dfn title="dom-StyleSheet-type"><code>type</code></dfn>
810810
attribute must return the
811811
<span>style sheet type</span>.</p>
812812

813813
<p>The
814-
<dfn id="dom-stylesheet-href" title="dom-StyleSheet-href"><code>href</code></dfn>
814+
<dfn title="dom-StyleSheet-href"><code>href</code></dfn>
815815
attribute must return the
816816
<span>style sheet location</span>.</p>
817817

818818
<p>The
819-
<dfn id="dom-stylesheet-ownernode" title="dom-StyleSheet-ownerNode"><code>ownerNode</code></dfn>
819+
<dfn title="dom-StyleSheet-ownerNode"><code>ownerNode</code></dfn>
820820
attribute must return the
821821
<span>style sheet owner node</span>.</p>
822822

823823
<p>The
824-
<dfn id="dom-stylesheet-parentstylesheet" title="dom-StyleSheet-parentStyleSheet"><code>parentStyleSheet</code></dfn>
824+
<dfn title="dom-StyleSheet-parentStyleSheet"><code>parentStyleSheet</code></dfn>
825825
attribute must return the
826826
<span>style sheet parent</span>.</p>
827827

828828
<p>The
829-
<dfn id="dom-stylesheet-title" title="dom-StyleSheet-title"><code>title</code></dfn>
829+
<dfn title="dom-StyleSheet-title"><code>title</code></dfn>
830830
attribute must return the
831831
<span>style sheet title</span>.</p>
832832

833833
<p>The
834-
<dfn id="dom-stylesheet-media" title="dom-StyleSheet-media"><code>media</code></dfn>
834+
<dfn title="dom-StyleSheet-media"><code>media</code></dfn>
835835
attribute must return the
836836
<span>style sheet media</span>.</p>
837837

838838
<p>The
839-
<dfn id="dom-stylesheet-disabled" title="dom-StyleSheet-disabled"><code>disabled</code></dfn>
839+
<dfn title="dom-StyleSheet-disabled"><code>disabled</code></dfn>
840840
attribute must, on getting, return the
841841
<span>style sheet disabled flag</span>. On setting, it
842842
must set the <span>style sheet disabled flag</span> to
@@ -862,27 +862,27 @@ <h4>The <code title="">CSSStyleSheet</code> Interface</h4>
862862
};</pre>
863863

864864
<p>The
865-
<dfn id="dom-cssstylesheet-ownerrule" title="dom-CSSStyleSheet-ownerRule"><code>ownerRule</code></dfn>
865+
<dfn title="dom-CSSStyleSheet-ownerRule"><code>ownerRule</code></dfn>
866866
attribute must return the
867867
<span>style sheet owner CSS rule</span>.</p>
868868

869869
<p>The
870-
<dfn id="dom-cssstylesheet-cssrules" title="dom-CSSStyleSheet-cssRules"><code>cssRules</code></dfn>
870+
<dfn title="dom-CSSStyleSheet-cssRules"><code>cssRules</code></dfn>
871871
attribute must return a <code>CSSRuleList</code>
872872
object representing the <span>style sheet CSS rules</span>.</p>
873873

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

877877
<p>The
878-
<dfn id="dom-cssstylesheet-insertrule" title="dom-CSSStyleSheet-insertRule"><code>insertRule(<var title="">rule</var>, <var title="">index</var>)</code></dfn>
878+
<dfn title="dom-CSSStyleSheet-insertRule"><code>insertRule(<var title="">rule</var>, <var title="">index</var>)</code></dfn>
879879
method must <span>insert a CSS rule</span>
880880
<var title="">rule</var> the in CSS rule list returned by
881881
<code title="dom-CSSStyleSheet-cssRules">cssRules</code> at
882882
<var title="">index</var>.</p>
883883

884884
<p>The
885-
<dfn id="dom-cssstylesheet-deleterule" title="dom-CSSStyleSheet-deleteRule"><code>deleteRule(<var title="">index</var>)</code></dfn>
885+
<dfn title="dom-CSSStyleSheet-deleteRule"><code>deleteRule(<var title="">index</var>)</code></dfn>
886886
method must <span>remove a CSS rule</span> from the
887887
CSS rule list returned by
888888
<code title="dom-CSSStyleSheet-cssRules">cssRules</code> at
@@ -893,14 +893,15 @@ <h4>The <code title="">CSSStyleSheet</code> Interface</h4>
893893
<h3>Style Sheet Collections</h3>
894894

895895
<p>Below various new concepts are defined that are associated with each
896-
<code>Document</code> object.</p>
896+
<code data-anolis-spec=domcore>Document</code> object.</p>
897897

898-
<p>Each <code>Document</code> has an associated list of zero or more
898+
<p>Each <code data-anolis-spec=domcore>Document</code> has an associated list of zero or more
899899
<span title="style sheet">style sheets</span>, named the
900900
<dfn id="document-style-sheets">document style sheets</dfn>. This is
901901
an ordered list that contains all
902902
<span title="style sheet">style sheets</span> associated with the
903-
<code>Document</code>, in <span>tree order</span>, with
903+
<code data-anolis-spec=domcore>Document</code>, in
904+
<span data-anolis-spec=domcore>tree order</span>, with
904905
<span title="style sheet">style sheets</span> created from HTTP
905906
<code title="http-link">Link</code> headers first, if any, in header
906907
order.</p>
@@ -1073,7 +1074,7 @@ <h4>The <code title="">StyleSheetList</code> Sequence</h4>
10731074
objects currently in the list.</p>
10741075
10751076
<p>The
1076-
<dfn id="stylesheetlist-item" title="stylesheetlist-item"><code>item(<var title="">index</var>)</code></dfn>
1077+
<dfn title="stylesheetlist-item"><code>item(<var title="">index</var>)</code></dfn>
10771078
method, when invoked, must return the
10781079
<code>StyleSheet</code> object in the list given by <var title="">index</var>, or
10791080
null, if <var title="">index</var> is greater than or equal to the
@@ -1084,7 +1085,7 @@ <h4>The <code title="">StyleSheetList</code> Sequence</h4>
10841085
<h4>Extensions to the <code title="">Document</code> Interface</h4>
10851086

10861087
<!-- https://bugzilla.mozilla.org/show_bug.cgi?id=200930 (FIXED) -->
1087-
<pre class="idl">[Supplemental] interface <span>Document</span> {
1088+
<pre class="idl">partial interface <span data-anolis-spec=domcore>Document</span> {
10881089
readonly attribute <span>StyleSheetList</span> <span title="dom-Document-styleSheets">styleSheets</span>;
10891090
attribute DOMString? <span title="dom-Document-selectedStyleSheetSet">selectedStyleSheetSet</span>;
10901091
readonly attribute DOMString? <span title="dom-Document-lastStyleSheetSet">lastStyleSheetSet</span>;
@@ -2985,19 +2986,20 @@ <h3>The <code>ElementCSSInlineStyle</code> Interface</h3>
29852986

29862987
<h3>Extensions to the <code title="">Window</code> Interface</h3>
29872988

2988-
<pre class="idl">[Supplemental] interface <span>Window</span> {
2989-
<span>CSSStyleDeclaration</span> <span title="dom-Window-getComputedStyle">getComputedStyle</span>(Element <var title="">elt</var>);
2990-
<span>CSSStyleDeclaration</span> <span title="dom-Window-getComputedStyle">getComputedStyle</span>(Element <var title="">elt</var>, DOMString <var title="">pseudoElt</var>);
2989+
<pre class="idl">partial interface <span data-anolis-spec=html>Window</span> {
2990+
<span>CSSStyleDeclaration</span> <span title="dom-Window-getComputedStyle">getComputedStyle</span>(<span data-anolis-spec=domcore>Element</span> <var title="">elt</var>);
2991+
<span>CSSStyleDeclaration</span> <span title="dom-Window-getComputedStyle">getComputedStyle</span>(<span data-anolis-spec=domcore>Element</span> <var title="">elt</var>, DOMString <var title="">pseudoElt</var>);
29912992
};</pre>
29922993

29932994
<p>The
29942995
<dfn id="dom-window-getcomputedstyle" title="dom-Window-getComputedStyle"><code>getComputedStyle(<var title="">elt</var>, <var title="">pseudoElt</var>)</code></dfn>
29952996
method must run these steps:</p>
29962997

29972998
<ol>
2998-
<li><p>Let <var title="">doc</var> be the <code>Document</code>
2999-
associated with the <code>Window</code> object on which the method was
3000-
invoked.</p></li>
2999+
<li><p>Let <var title="">doc</var> be the
3000+
<code data-anolis-spec=domcore>Document</code>
3001+
associated with the <code data-anolis-spec=html>Window</code> object on
3002+
which the method was invoked.</p></li>
30013003

30023004
<li><p>Let <var title="">obj</var> be <var title="">elt</var>.</p></li>
30033005

0 commit comments

Comments
 (0)