[css3-conditional] Split CSSConditionRule into a CSSGroupingRule superclass.

Wed, 05 Sep 2012 09:35:55 -0700

author
Tab Atkins Jr. <jackalmage@gmail.com>
date
Wed, 05 Sep 2012 09:35:55 -0700
changeset 6655
8c75e6e6f34d
parent 6654
2b98ef0e3cc6
child 6656
4a048f6a1a26

[css3-conditional] Split CSSConditionRule into a CSSGroupingRule superclass.

css3-conditional/Overview.html file | annotate | diff | comparison | revisions
css3-conditional/Overview.src.html file | annotate | diff | comparison | revisions
     1.1 --- a/css3-conditional/Overview.html	Wed Sep 05 08:04:22 2012 -0700
     1.2 +++ b/css3-conditional/Overview.html	Wed Sep 05 09:35:55 2012 -0700
     1.3 @@ -10,10 +10,10 @@
     1.4    <link href="http://purl.org/dc/terms/" rel=schema.DC>
     1.5    <meta content="CSS Conditional Rules Module Level 3" name=DC.title>
     1.6    <meta content=text name=DC.type>
     1.7 -  <meta content=2012-08-31 name=DC.issued>
     1.8 +  <meta content=2012-09-05 name=DC.issued>
     1.9    <meta content="http://dev.w3.org/csswg/css3-conditional/" name=DC.creator>
    1.10    <meta content=W3C name=DC.publisher>
    1.11 -  <meta content="http://www.w3.org/TR/2012/ED-css3-conditional-20120831/"
    1.12 +  <meta content="http://www.w3.org/TR/2012/ED-css3-conditional-20120905/"
    1.13     name=DC.identifier>
    1.14    <link href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
    1.15     rel=DC.rights>
    1.16 @@ -28,13 +28,14 @@
    1.17  
    1.18     <h1>CSS Conditional Rules Module Level 3</h1>
    1.19  
    1.20 -   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 31 August 2012</h2>
    1.21 +   <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 5 September
    1.22 +    2012</h2>
    1.23  
    1.24     <dl>
    1.25      <dt>This version:
    1.26  
    1.27 -    <dd><a href="http://www.w3.org/TR/2012/ED-css3-conditional-20120831/">
    1.28 -     http://www.w3.org/TR/2012/ED-css3-conditional-20120831/</a>
    1.29 +    <dd><a href="http://www.w3.org/TR/2012/ED-css3-conditional-20120905/">
    1.30 +     http://www.w3.org/TR/2012/ED-css3-conditional-20120905/</a>
    1.31  
    1.32      <dt>Latest version:
    1.33  
    1.34 @@ -213,19 +214,22 @@
    1.35       <li><a href="#extentions-to-cssrule-interface"><span class=secno>8.1.
    1.36        </span> Extensions to the <code>CSSRule</code> interface</a>
    1.37  
    1.38 -     <li><a href="#the-cssconditionrule-interface"><span class=secno>8.2.
    1.39 +     <li><a href="#the-cssgroupingrule-interface"><span class=secno>8.2.
    1.40 +      </span> The <code>CSSGroupingRule</code> interface</a>
    1.41 +
    1.42 +     <li><a href="#the-cssconditionrule-interface"><span class=secno>8.3.
    1.43        </span> The <code>CSSConditionRule</code> interface</a>
    1.44  
    1.45 -     <li><a href="#the-cssmediarule-interface"><span class=secno>8.3. </span>
    1.46 +     <li><a href="#the-cssmediarule-interface"><span class=secno>8.4. </span>
    1.47        The <code>CSSMediaRule</code> interface</a>
    1.48  
    1.49 -     <li><a href="#the-csssupportsrule-interface"><span class=secno>8.4.
    1.50 +     <li><a href="#the-csssupportsrule-interface"><span class=secno>8.5.
    1.51        </span> The <code>CSSSupportsRule</code> interface</a>
    1.52  
    1.53 -     <li><a href="#the-cssdocumentrule-interface"><span class=secno>8.5.
    1.54 +     <li><a href="#the-cssdocumentrule-interface"><span class=secno>8.6.
    1.55        </span> The <code>CSSDocumentRule</code> interface</a>
    1.56  
    1.57 -     <li><a href="#the-css-interface"><span class=secno>8.6. </span> The
    1.58 +     <li><a href="#the-css-interface"><span class=secno>8.7. </span> The
    1.59        <code>CSS</code> interface, and the <code title="">supports()</code>
    1.60        function</a>
    1.61      </ul>
    1.62 @@ -1074,18 +1078,50 @@
    1.63      const unsigned short DOCUMENT_RULE = 13;
    1.64  }</pre>
    1.65  
    1.66 -  <h3 id=the-cssconditionrule-interface><span class=secno>8.2. </span> The <a
    1.67 +  <h3 id=the-cssgroupingrule-interface><span class=secno>8.2. </span> The <a
    1.68 +   href="#cssgroupingrule"><code>CSSGroupingRule</code></a> interface</h3>
    1.69 +
    1.70 +  <p>The <dfn id=cssgroupingrule><code>CSSGroupingRule</code></dfn> interface
    1.71 +   represents an at-rule that contains other rules nested inside itself.
    1.72 +
    1.73 +  <pre class=idl>interface CSSGroupingRule : CSSRule {
    1.74 +    readonly attribute CSSRuleList cssRules;
    1.75 +    unsigned long insertRule (DOMString rule, unsigned long index);
    1.76 +    void deleteRule (unsigned long index);
    1.77 +}</pre>
    1.78 +
    1.79 +  <dl class=idl-attributes>
    1.80 +   <dt><code>cssRules</code> of type <code>CSSRuleList</code>, readonly
    1.81 +
    1.82 +   <dd>The <code>cssRules</code> attribute must return a
    1.83 +    <code>CSSRuleList</code> object for the list of CSS rules nested inside
    1.84 +    the grouping rule.
    1.85 +  </dl>
    1.86 +
    1.87 +  <dl class=idl-methods>
    1.88 +   <dt><code>insertRule(DOMString rule, unsigned long index)</code>, returns
    1.89 +    <code>unsigned long</code>
    1.90 +
    1.91 +   <dd>The <code>insertRule</code> operation must insert a CSS rule
    1.92 +    <var>rule</var> into the CSS rule list returned by <code>cssRules</code>
    1.93 +    at <var>index</var>.
    1.94 +
    1.95 +   <dt><code>deleteRule (unsigned long index)</code>, return
    1.96 +    <code>void</code>
    1.97 +
    1.98 +   <dd>The <code>deleteRule</code> operation must remove a CSS rule from the
    1.99 +    CSS rule list returned by <code>cssRules</code> at <var>index</var>.
   1.100 +  </dl>
   1.101 +
   1.102 +  <h3 id=the-cssconditionrule-interface><span class=secno>8.3. </span> The <a
   1.103     href="#cssconditionrule"><code>CSSConditionRule</code></a> interface</h3>
   1.104  
   1.105    <p>The <dfn id=cssconditionrule><code>CSSConditionRule</code></dfn>
   1.106     interface represents all the "conditional" at-rules, which consist of a
   1.107     condition and a statement block.
   1.108  
   1.109 -  <pre class=idl>interface CSSConditionRule : CSSRule {
   1.110 +  <pre class=idl>interface CSSConditionRule : CSSGroupingRule {
   1.111      attribute DOMString conditionText;
   1.112 -    readonly attribute CSSRuleList cssRules;
   1.113 -    unsigned long insertRule (DOMString rule, unsigned long index);
   1.114 -    void deleteRule (unsigned long index);
   1.115  }</pre>
   1.116  
   1.117    <dl class=idl-attributes>
   1.118 @@ -1105,30 +1141,9 @@
   1.119  
   1.120       <li>Otherwise, do nothing.
   1.121      </ol>
   1.122 -
   1.123 -   <dt><code>cssRules</code> of type <code>CSSRuleList</code>, readonly
   1.124 -
   1.125 -   <dd>The <code>cssRules</code> attribute must return a
   1.126 -    <code>CSSRuleList</code> object for the list of CSS rules nested inside
   1.127 -    the condition rule.
   1.128    </dl>
   1.129  
   1.130 -  <dl class=idl-methods>
   1.131 -   <dt><code>insertRule(DOMString rule, unsigned long index)</code>, returns
   1.132 -    <code>unsigned long</code>
   1.133 -
   1.134 -   <dd>The <code>insertRule</code> operation must insert a CSS rule
   1.135 -    <var>rule</var> into the CSS rule list returned by <code>cssRules</code>
   1.136 -    at <var>index</var>.
   1.137 -
   1.138 -   <dt><code>deleteRule (unsigned long index)</code>, return
   1.139 -    <code>void</code>
   1.140 -
   1.141 -   <dd>The <code>deleteRule</code> operation must remove a CSS rule from the
   1.142 -    CSS rule list returned by <code>cssRules</code> at <var>index</var>.
   1.143 -  </dl>
   1.144 -
   1.145 -  <h3 id=the-cssmediarule-interface><span class=secno>8.3. </span> The <a
   1.146 +  <h3 id=the-cssmediarule-interface><span class=secno>8.4. </span> The <a
   1.147     href="#cssmediarule"><code>CSSMediaRule</code></a> interface</h3>
   1.148  
   1.149    <p>The <dfn id=cssmediarule><code>CSSMediaRule</code></dfn> interface
   1.150 @@ -1155,7 +1170,7 @@
   1.151       <code>media.mediaText</code> attribute on the rule.
   1.152    </dl>
   1.153  
   1.154 -  <h3 id=the-csssupportsrule-interface><span class=secno>8.4. </span> The <a
   1.155 +  <h3 id=the-csssupportsrule-interface><span class=secno>8.5. </span> The <a
   1.156     href="#csssupportsrule"><code>CSSSupportsRule</code></a> interface</h3>
   1.157  
   1.158    <p>The <dfn id=csssupportsrule><code>CSSSupportsRule</code></dfn> interface
   1.159 @@ -1165,7 +1180,7 @@
   1.160    <pre class=idl>interface CSSSupportsRule : CSSConditionRule {
   1.161  }</pre>
   1.162  
   1.163 -  <h3 id=the-cssdocumentrule-interface><span class=secno>8.5. </span> The <a
   1.164 +  <h3 id=the-cssdocumentrule-interface><span class=secno>8.6. </span> The <a
   1.165     href="#cssdocumentrule"><code>CSSDocumentRule</code></a> interface</h3>
   1.166  
   1.167    <p>The <dfn id=cssdocumentrule><code>CSSDocumentRule</code></dfn> interface
   1.168 @@ -1174,7 +1189,7 @@
   1.169    <pre class=idl>interface CSSDocumentRule : CSSConditionRule {
   1.170  }</pre>
   1.171  
   1.172 -  <h3 id=the-css-interface><span class=secno>8.6. </span> The <a
   1.173 +  <h3 id=the-css-interface><span class=secno>8.7. </span> The <a
   1.174     href="#CSS-interface"><code>CSS</code></a> interface, and the <code
   1.175     title="">supports()</code> function</h3>
   1.176  
   1.177 @@ -1533,19 +1548,22 @@
   1.178      </ul>
   1.179  
   1.180     <li><a href="#CSS-interface"><code>CSS</code></a>, <a
   1.181 -    href="#CSS-interface" title=CSS><strong>8.6.</strong></a>
   1.182 +    href="#CSS-interface" title=CSS><strong>8.7.</strong></a>
   1.183  
   1.184     <li><a href="#cssconditionrule"><code>CSSConditionRule</code></a>, <a
   1.185 -    href="#cssconditionrule" title=CSSConditionRule><strong>8.2.</strong></a>
   1.186 +    href="#cssconditionrule" title=CSSConditionRule><strong>8.3.</strong></a>
   1.187  
   1.188     <li><a href="#cssdocumentrule"><code>CSSDocumentRule</code></a>, <a
   1.189 -    href="#cssdocumentrule" title=CSSDocumentRule><strong>8.5.</strong></a>
   1.190 +    href="#cssdocumentrule" title=CSSDocumentRule><strong>8.6.</strong></a>
   1.191 +
   1.192 +   <li><a href="#cssgroupingrule"><code>CSSGroupingRule</code></a>, <a
   1.193 +    href="#cssgroupingrule" title=CSSGroupingRule><strong>8.2.</strong></a>
   1.194  
   1.195     <li><a href="#cssmediarule"><code>CSSMediaRule</code></a>, <a
   1.196 -    href="#cssmediarule" title=CSSMediaRule><strong>8.3.</strong></a>
   1.197 +    href="#cssmediarule" title=CSSMediaRule><strong>8.4.</strong></a>
   1.198  
   1.199     <li><a href="#csssupportsrule"><code>CSSSupportsRule</code></a>, <a
   1.200 -    href="#csssupportsrule" title=CSSSupportsRule><strong>8.4.</strong></a>
   1.201 +    href="#csssupportsrule" title=CSSSupportsRule><strong>8.5.</strong></a>
   1.202  
   1.203     <li>‘<code class=css>@document</code>’ rule, <a href="#document-rule"
   1.204      title="'@document' rule"><strong>7.</strong></a>
     2.1 --- a/css3-conditional/Overview.src.html	Wed Sep 05 08:04:22 2012 -0700
     2.2 +++ b/css3-conditional/Overview.src.html	Wed Sep 05 09:35:55 2012 -0700
     2.3 @@ -797,17 +797,43 @@
     2.4  }</pre>
     2.5  
     2.6  
     2.7 +<h3 id='the-cssgroupingrule-interface'>
     2.8 +The <code>CSSGroupingRule</code> interface</h3>
     2.9 +
    2.10 +<p>The <dfn><code>CSSGroupingRule</code></dfn> interface represents an at-rule that contains other rules nested inside itself.
    2.11 +
    2.12 +<pre class='idl'>interface CSSGroupingRule : CSSRule {
    2.13 +    readonly attribute CSSRuleList cssRules;
    2.14 +    unsigned long insertRule (DOMString rule, unsigned long index);
    2.15 +    void deleteRule (unsigned long index);
    2.16 +}</pre>
    2.17 +
    2.18 +<dl class='idl-attributes'>
    2.19 +  <dt><code>cssRules</code> of type <code>CSSRuleList</code>, readonly
    2.20 +  <dd>The <code>cssRules</code> attribute must return a <code>CSSRuleList</code>
    2.21 +    object for the list of CSS rules nested inside the grouping rule.
    2.22 +</dl>
    2.23 +
    2.24 +<dl class='idl-methods'>
    2.25 +  <dt><code>insertRule(DOMString rule, unsigned long index)</code>, returns
    2.26 +    <code>unsigned long</code>
    2.27 +  <dd>The <code>insertRule</code> operation must insert a CSS rule <var>rule</var>
    2.28 +    into the CSS rule list returned by <code>cssRules</code> at <var>index</var>.
    2.29 +
    2.30 +  <dt><code>deleteRule (unsigned long index)</code>, return <code>void</code>
    2.31 +  <dd>The <code>deleteRule</code> operation must remove a CSS rule from the 
    2.32 +    CSS rule list returned by <code>cssRules</code> at <var>index</var>.
    2.33 +</dl>
    2.34 +
    2.35 +
    2.36  <h3 id="the-cssconditionrule-interface">
    2.37  The <code>CSSConditionRule</code> interface</h3>
    2.38  
    2.39  <p>The <dfn><code>CSSConditionRule</code></dfn> interface represents all the "conditional" at-rules,
    2.40    which consist of a condition and a statement block.
    2.41  
    2.42 -<pre class='idl'>interface CSSConditionRule : CSSRule {
    2.43 +<pre class='idl'>interface CSSConditionRule : CSSGroupingRule {
    2.44      attribute DOMString conditionText;
    2.45 -    readonly attribute CSSRuleList cssRules;
    2.46 -    unsigned long insertRule (DOMString rule, unsigned long index);
    2.47 -    void deleteRule (unsigned long index);
    2.48  }</pre>
    2.49  
    2.50  <dl class='idl-attributes'>
    2.51 @@ -825,21 +851,6 @@
    2.52          replace the associated CSS condition with the given value.
    2.53        <li>Otherwise, do nothing.
    2.54      </ol>
    2.55 -
    2.56 -  <dt><code>cssRules</code> of type <code>CSSRuleList</code>, readonly
    2.57 -  <dd>The <code>cssRules</code> attribute must return a <code>CSSRuleList</code>
    2.58 -    object for the list of CSS rules nested inside the condition rule.
    2.59 -</dl>
    2.60 -
    2.61 -<dl class='idl-methods'>
    2.62 -  <dt><code>insertRule(DOMString rule, unsigned long index)</code>, returns
    2.63 -    <code>unsigned long</code>
    2.64 -  <dd>The <code>insertRule</code> operation must insert a CSS rule <var>rule</var>
    2.65 -    into the CSS rule list returned by <code>cssRules</code> at <var>index</var>.
    2.66 -
    2.67 -  <dt><code>deleteRule (unsigned long index)</code>, return <code>void</code>
    2.68 -  <dd>The <code>deleteRule</code> operation must remove a CSS rule from the 
    2.69 -    CSS rule list returned by <code>cssRules</code> at <var>index</var>.
    2.70  </dl>
    2.71  
    2.72  

mercurial