8000 rename some style sheet terms; use them · w3c/csswg-drafts@97d8e71 · GitHub
Skip to content

Commit 97d8e71

Browse files
committed
rename some style sheet terms; use them
1 parent d690d6c commit 97d8e71

2 files changed

Lines changed: 86 additions & 62 deletions

File tree

cssom/Overview.html

Lines changed: 53 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ <h2 class="no-num no-toc" id="">Editor's Draft 17 March 2010</h2>
6060

6161
<h2 class="no-num no-toc" id=abstract>Abstract</h2>
6262

63-
<p>CSSOM defines how style sheets interact with the DOM and defines an API
64-
for CSS style sheets.
63+
<p>CSSOM defines APIs (including generic parsing and serialization rules)
64+
for Media Queries, Selectors, and of course CSS itself.
6565

6666
<h2 class="no-num no-toc" id=sotd>Status of this Document</h2>
6767

@@ -944,17 +944,25 @@ <h3 id=style-sheet0><span class=secno>6.1. </span>Style Sheet</h3>
944944
sheet</a> or null if the <a href="#style-sheet">style sheet</a> was
945945
embedded.
946946

947-
<dt><dfn id=style-sheet-node>style sheet node</dfn>
947+
<dt><dfn id=style-sheet-parent>style sheet parent</dfn>
948+
949+
<dd>
950+
<p>The <a href="#style-sheet">style sheet</a> that is the parent of the
951+
<a href="#style-sheet">style sheet</a>.
952+
953+
<dt><dfn id=style-sheet-owner-node>style sheet owner node</dfn>
948954

949955
<dd>
950956
<p>The DOM node associated with the <a href="#style-sheet">style
951957
sheet</a> or null if there is no associated DOM node.
952958

953-
<dt><dfn id=style-sheet-parent>style sheet parent</dfn>
959+
<dt><dfn id=style-sheet-owner-css-rule>style sheet owner CSS rule</dfn>
954960

955961
<dd>
956-
<p>The <a href="#style-sheet">style sheet</a> that is the parent of the
957-
<a href="#style-sheet">style sheet</a>.
962+
<p>The <span>CSS rule</span> in the <a href="#style-sheet-parent">style
963+
sheet parent</a> that caused the inclusion of the <a
964+
href="#style-sheet">style sheet</a> or null if there is no such
965+
<span>CSS rule</span>.
958966

959967
<dt><dfn id=style-sheet-media>style sheet media</dfn>
960968

@@ -1005,24 +1013,17 @@ <h3 id=style-sheet0><span class=secno>6.1. </span>Style Sheet</h3>
10051013
<p class=note>Even when false it does not necessarily mean that the <a
10061014
href="#style-sheet">style sheet</a> is actually rendered.</p>
10071015

1008-
<dt><dfn id=style-sheet-parent-rule>style sheet parent rule</dfn>
1009-
1010-
<dd>
1011-
<p>The <span>CSS rule</span> in the <a href="#style-sheet-parent">style
1012-
sheet parent</a> that caused the inclusion of the <span>CSS style
1013-
sheet</span> or null if there is no such <span>CSS rule</span>.
1014-
1015-
<dt><dfn id=style-sheet-rules>style sheet rules</dfn>
1016+
<dt><dfn id=style-sheet-css-rules>style sheet CSS rules</dfn>
10161017

10171018
<dd>
1018-
<p>The <span title="CSS rule">CSS rules</span> associated with the
1019-
<span>CSS style sheet</span>.
1019+
<p>The <span title="CSS rule">CSS rules</span> associated with the <a
1020+
href="#style-sheet">style sheet</a>.
10201021
</dl>
10211022

10221023
<p>When you are to <a href="#create-a-style-sheet">create a style sheet</a>
10231024
the above properties, with the exception of <a
1024-
href="#style-sheet-rules">style sheet rules</a>, are to be set to their
1025-
proper values.</p>
1025+
href="#style-sheet-css-rules">style sheet CSS rules</a>, are to be set to
1026+
their proper values.</p>
10261027
<!-- same-origin restrictions -->
10271028

10281029
<h4 id=the-stylesheet-interface><span class=secno>6.1.1. </span>The <code
@@ -1053,8 +1054,8 @@ <h4 id=the-stylesheet-interface><span class=secno>6.1.1. </span>The <code
10531054

10541055
<p>The <dfn id=dom-stylesheet-ownernode
10551056
title=dom-StyleSheet-ownerNode><code>ownerNode</code></dfn> attribute <em
1056-
class=ct>must</em> return the <a href="#style-sheet-node">style sheet
1057-
node</a>.
1057+
class=ct>must</em> return the <a href="#style-sheet-owner-node">style
1058+
sheet owner node</a>.
10581059

10591060
<p>The <dfn id=dom-stylesheet-parentstylesheet
10601061
title=dom-StyleSheet-parentStyleSheet><code>parentStyleSheet</code></dfn>
@@ -1100,14 +1101,14 @@ <h4 id=the-cssstylesheet-interface><span class=secno>6.1.2. </span>The
11001101

11011102
<p>The <dfn id=dom-cssstylesheet-ownerrule
11021103
title=dom-CSSStyleSheet-ownerRule><code>ownerRule</code></dfn> attribute
1103-
<em class=ct>must</em> return the <a href="#style-sheet-parent-rule">style
1104-
sheet parent rule</a>.
1104+
<em class=ct>must</em> return the <a
1105+
href="#style-sheet-owner-css-rule">style sheet owner CSS rule</a>.
11051106

11061107
<p>The <dfn id=dom-cssstylesheet-cssrules
11071108
title=dom-CSSStyleSheet-cssRules><code>cssRules</code></dfn> attribute <em
11081109
class=ct>must</em> return a <code><a
11091110
href="#cssrulelist">CSSRuleList</a></code> object representing the <a
1110-
href="#style-sheet-rules">style sheet rules</a>.
1111+
href="#style-sheet-css-rules">style sheet CSS rules</a>.
11111112

11121113
<p class=note>CSS rules that were dropped during parsing can not be found
11131114
using APIs described by this specification.
@@ -1586,15 +1587,15 @@ <h4 id=examples><span class=secno>6.2.5. </span>Examples</h4>
15861587
<h3 id=style-sheet-association><span class=secno>6.3. </span>Style Sheet
15871588
Association</h3>
15881589

1589-
<p>This section defines the interface a <a href="#style-sheet-node">style
1590-
sheet node</a> of a <a href="#style-sheet">style sheet</a> has to
1591-
implement and defines the requirements for <a
1592-
href="#xml-stylesheet-processing-instruction" title="xml-stylesheet
1593-
processing instruction">xml-stylesheet processing instructions</a> and
1594-
HTTP <code title=http-link>Link</code> headers when the link releation
1595-
type is an <a href="#ascii-case-insensitive">ASCII case-insensitive</a>
1596-
match for "<code title="">stylesheet</code>" since nobody else was
1597-
interested in defining this.
1590+
<p>This section defines the interface a <a
1591+
href="#style-sheet-owner-node">style sheet owner node</a> of a <a
1592+
href="#style-sheet">style sheet</a> has to implement and defines the
1593+
requirements for <a href="#xml-stylesheet-processing-instruction"
1594+
title="xml-stylesheet processing instruction">xml-stylesheet processing
1595+
instructions</a> and HTTP <code title=http-link>Link</code> headers when
1596+
the link releation type is an <a href="#ascii-case-insensitive">ASCII
1597+
case-insensitive</a> match for "<code title="">stylesheet</code>" since
1598+
nobody else was interested in defining this.
15981599

15991600
<p>The editor is in good hope that HTML and SVG will define the appropriate
16001601
processing in their respective specifications, in terms of this
@@ -1606,8 +1607,8 @@ <h4 id=the-linkstyle-interface><span class=secno>6.3.1. </span>The <code
16061607
<p>The <dfn id=associated-style-sheet>associated style sheet</dfn> of a
16071608
node is the <a href="#style-sheet">style sheet</a> in the list of <a
16081609
href="#document-style-sheets">document style sheets</a> of which the <a
1609-
href="#style-sheet-node">style sheet node</a> implements the <code><a
1610-
href="#linkstyle">LinkStyle</a></code> interface.
1610+
href="#style-sheet-owner-node">style sheet owner node</a> implements the
1611+
<code><a href="#linkstyle">LinkStyle</a></code> interface.
16111612

16121613
<pre class=idl>interface <dfn id=linkstyle>LinkStyle</dfn> {
16131614
readonly attribute <a href="#stylesheet">StyleSheet</a> <a href="#linkstyle-sheet" title=linkstyle-sheet>sheet</a>;
@@ -1713,12 +1714,17 @@ <h4 id=requirements-on-user-agents-implementing><span class=secno>6.3.3.
17131714
<dd>
17141715
<p>The <span>absolute URL</span> of the resource.
17151716

1716-
<dt><a href="#style-sheet-node">style sheet node</a>
1717+
<dt><a href="#style-sheet-parent">style sheet parent</a>
1718+
1719+
<dd>
1720+
<p>null
1721+
1722+
<dt><a href="#style-sheet-owner-node">style sheet owner node</a>
17171723

17181724
<dd>
17191725
<p>The node.
17201726

1721-
<dt><a href="#style-sheet-parent">style sheet parent</a>
1727+
<dt><a href="#style-sheet-owner-css-rule">style sheet owner CSS rule</a>
17221728

17231729
<dd>
17241730
<p>null
@@ -1799,13 +1805,23 @@ <h4 id=requirements-on-user-agents-implementing0><span class=secno>6.3.4.
17991805
<dd>
18001806
<p>The <span>absolute URL</span> of the resource.
18011807

1802-
<dt><a href="#style-sheet-node">style sheet node</a>
1808+
<dt><a href="#style-sheet-owner-node">style sheet owner node</a>
18031809

18041810
<dd>
18051811
<p>null
18061812

18071813
<dt><a href="#style-sheet-parent">style sheet parent</a>
18081814

1815+
<dd>
1816+
<p>null
1817+
1818+
<dt><a href="#style-sheet-owner-node">style sheet owner node</a>
1819+
1820+
<dd>
1821+
<p>null
1822+
1823+
<dt><a href="#style-sheet-owner-css-rule">style sheet owner CSS rule</a>
1824+
18091825
<dd>
18101826
<p>null
18111827

cssom/Overview.src.html

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ <h2 class="no-num no-toc" id="">[LONGSTATUS] [DATE: 3 August 2002]</h2>
5656

5757
<h2 class="no-num no-toc" id="abstract">Abstract</h2>
5858

59-
<p>CSSOM defines how style sheets interact with the DOM and defines an
60-
API for CSS style sheets.</p>
59+
<p>CSSOM defines APIs (including generic parsing and serialization rules)
60+
for Media Queries, Selectors, and of course CSS itself.</p>
6161

6262

6363

@@ -693,14 +693,19 @@ <h3>Style Sheet</h3>
693693
<dd><p>The <span>URL</span> of the <span>style sheet</span> or null if
694694
the <span>style sheet</span> was embedded.</p></dd>
695695

696-
<dt><dfn id="style-sheet-node">style sheet node</dfn></dt>
697-
<dd><p>The DOM node associated with the <span>style sheet</span> or
698-
null if there is no associated DOM node.</p></dd>
699-
700696
<dt><dfn id="style-sheet-parent">style sheet parent</dfn></dt>
701697
<dd><p>The <span>style sheet</span> that is the parent of the
702698
<span>style sheet</span>.</p></dd>
703699

700+
<dt><dfn id="style-sheet-owner-node">style sheet owner node</dfn></dt>
701+
<dd><p>The DOM node associated with the <span>style sheet</span> or
702+
null if there is no associated DOM node.</p></dd>
703+
704+
<dt><dfn id="style-sheet-owner-css-rule">style sheet owner CSS rule</dfn></dt>
705+
<dd><p>The <span>CSS rule</span> in the <span>style sheet parent</span>
706+
that caused the inclusion of the <span>style sheet</span> or null if
707+
there is no such <span>CSS rule</span>.</p></dd>
708+
704709
<dt><dfn id="style-sheet-media">style sheet media</dfn></dt>
705710
<dd>
706711
<p>The <code>MediaList</code> object associated with the
@@ -741,28 +746,22 @@ <h3>Style Sheet</h3>
741746
</div>
742747
</dd>
743748

744-
<dt><dfn>style sheet disabled flag</dfn></dt>
749+
<dt><dfn id="style-sheet-disabled-flag">style sheet disabled flag</dfn></dt>
745750
<dd>
746751
<p>Either true or false. False by default.</p>
747752

748753
<p class="note">Even when false it does not necessarily mean that the
749754
<span>style sheet</span> is actually rendered.</p>
750755
</dd>
751756

752-
<dt><dfn>style sheet parent rule</dfn></dt>
753-
754-
<dd><p>The <span>CSS rule</span> in the <span>style sheet parent</span>
755-
that caused the inclusion of the <span>CSS style sheet</span> or null if
756-
there is no such <span>CSS rule</span>.</p></dd>
757-
758-
<dt><dfn>style sheet rules</dfn></dt>
759757

758+
<dt><dfn id="style-sheet-css-rules">style sheet CSS rules</dfn></dt>
760759
<dd><p>The <span title="CSS rule">CSS rules</span> associated with the
761-
<span>CSS style sheet</span>.</p></dd>
760+
<span>style sheet</span>.</p></dd>
762761
</dl>
763762

764763
<p>When you are to <span>create a style sheet</span> the above properties,
765-
with the exception of <span>style sheet rules</span>, are to be set to
764+
with the exception of <span>style sheet CSS rules</span>, are to be set to
766765
their proper values.</p>
767766

768767
<!-- same-origin restrictions -->
@@ -796,7 +795,7 @@ <h4>The <code title="">StyleSheet</code> Interface</h4>
796795
<p>The
797796
<dfn id="dom-stylesheet-ownernode" title="dom-StyleSheet-ownerNode"><code>ownerNode</code></dfn>
798797
attribute <em class="ct">must</em> return the
799-
<span>style sheet node</span>.</p>
798+
<span>style sheet owner node</span>.</p>
800799

801800
<p>The
802801
<dfn id="dom-stylesheet-parentstylesheet" title="dom-StyleSheet-parentStyleSheet"><code>parentStyleSheet</code></dfn>
@@ -842,12 +841,12 @@ <h4>The <code title="">CSSStyleSheet</code> Interface</h4>
842841
<p>The
843842
<dfn id="dom-cssstylesheet-ownerrule" title="dom-CSSStyleSheet-ownerRule"><code>ownerRule</code></dfn>
844843
attribute <em class="ct">must</em> return the
845-
<span>style sheet parent rule</span>.</p>
844+
<span>style sheet owner CSS rule</span>.</p>
846845

847846
<p>The
848847
<dfn id="dom-cssstylesheet-cssrules" title="dom-CSSStyleSheet-cssRules"><code>cssRules</code></dfn>
849848
attribute <em class="ct">must</em> return a <code>CSSRuleList</code>
850-
object representing the <span>style sheet rules</span>.</p>
849+
object representing the <span>style sheet CSS rules</span>.</p>
851850

852851
<p class="note">CSS rules that were dropped during parsing can not be
853852
found using APIs described by this specification.</p>
@@ -1277,7 +1276,7 @@ <h4>Examples</h4>
12771276

12781277
<h3>Style Sheet Association</h3>
12791278

1280-
<p>This section defines the interface a <span>style sheet node</span> of a
1279+
<p>This section defines the interface a <span>style sheet owner node</span> of a
12811280
<span>style sheet</span> has to implement and defines the requirements for
12821281
<span title="xml-stylesheet processing instruction">xml-stylesheet processing instructions</span>
12831282
and HTTP <code title="http-link">Link</code> headers when the link
@@ -1295,7 +1294,7 @@ <h4>The <code title="">LinkStyle</code> Interface</h4>
12951294
<p>The <dfn id="associated-style-sheet">associated style sheet</dfn> of a
12961295
node is the <span>style sheet</span> in the list of
12971296
<span>document style sheets</span> of which the
1298-
<span>style sheet node</span>
1297+
<span>style sheet owner node</span>
12991298
implements the <code>LinkStyle</code> interface.</p>
13001299

13011300
<pre class="idl">interface <dfn>LinkStyle</dfn> {
@@ -1393,12 +1392,15 @@ <h4>Requirements on User Agents Implementing the
13931392
<dt><span>style sheet location</span></dt>
13941393
<dd><p>The <span>absolute URL</span> of the resource.</p></dd>
13951394

1396-
<dt><span>style sheet node</span></dt>
1395+
<dt><span>style sheet parent</span></dt>
1396+
<dd><p>null</p></dd>
1397+
1398+
<dt><span>style sheet owner node</span></dt>
13971399
<dd><p>The node.</p></dd>
13981400

1399-
<dt><span>style sheet parent</span></dt>
1401+
<dt><span>style sheet owner CSS rule</span></dt>
14001402
<dd><p>null</p></dd>
1401-
1403+
14021404
<dt><span>style sheet media</span></dt>
14031405
<dd><p>The value of the <code title="">media</code> pseudo-attribute
14041406
if any, or the empty string otherwise.</p></dd>
@@ -1460,12 +1462,18 @@ <h4>Requirements on User Agents Implementing the HTTP
14601462
<dt><span>style sheet location</span></dt>
14611463
<dd><p>The <span>absolute URL</span> of the resource.</p></dd>
14621464

1463-
<dt><span>style sheet node</span></dt>
1465+
<dt><span>style sheet owner node</span></dt>
14641466
<dd><p>null</p></dd>
14651467

14661468
<dt><span>style sheet parent</span></dt>
14671469
<dd><p>null</p></dd>
14681470

1471+
<dt><span>style sheet owner node</span></dt>
1472+
<dd><p>null</p></dd>
1473+
1474< 5D2A /td>+
<dt><span>style sheet owner CSS rule</span></dt>
1475+
<dd><p>null</p></dd>
1476+
14691477
<dt><span>style sheet media</span></dt>
14701478
<dd><p>The value of the first <code title="">media</code> parameter.</p></dd>
14711479
<!-- XXX register media parameter? bah -->

0 commit comments

Comments
 (0)
<