Skip to content

Commit 6935bd8

Browse files
author
Simon Pieters
committed
[cssom] Move CSSGroupingRule to CSSOM. https://www.w3.org/Bugs/Public/show_bug.cgi?id=22267
1 parent e75924f commit 6935bd8

2 files changed

Lines changed: 55 additions & 38 deletions

File tree

cssom/Overview.html

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<h1>CSS Object Model (CSSOM)</h1>
2828

2929

30-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 13 June 2013</h2>
30+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 17 June 2013</h2>
3131

3232
<dl>
3333

@@ -101,7 +101,7 @@ <h2 class="no-num no-toc" id="sotd">Status of This Document</h2>
101101
can be found in the
102102
<a href="http://www.w3.org/TR/">W3C technical reports index at http://www.w3.org/TR/.</a></em>
103103

104-
<p class="dontpublish">This is the 13 June 2013 Editor's Draft of CSSOM. Please send comments to
104+
<p class="dontpublish">This is the 17 June 2013 Editor's Draft of CSSOM. Please send comments to
105105
<a href="mailto:www-style@w3.org?subject=%5Bcssom%5D%20">www-style@w3.org</a>
106106
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
107107
with <samp>[cssom]</samp> at the start of the subject line.
@@ -169,10 +169,11 @@ <h2 class="no-num no-toc" id="toc">Table of Contents</h2>
169169
<li><a href="#the-cssstylerule-interface"><span class="secno">6.4.3 </span>The <code title="">CSSStyleRule</code> Interface</a></li>
170170
<li><a href="#the-csscharsetrule-interface"><span class="secno">6.4.4 </span>The <code title="">CSSCharsetRule</code> Interface</a></li>
171171
<li><a href="#the-cssimportrule-interface"><span class="secno">6.4.5 </span>The <code title="">CSSImportRule</code> Interface</a></li>
172-
<li><a href="#the-cssmediarule-interface"><span class="secno">6.4.6 </span>The <code title="">CSSMediaRule</code> Interface</a></li>
173-
<li><a href="#the-cssfontfacerule-interface"><span class="secno">6.4.7 </span>The <code title="">CSSFontFaceRule</code> Interface</a></li>
174-
<li><a href="#the-csspagerule-interface"><span class="secno">6.4.8 </span>The <code title="">CSSPageRule</code> Interface</a></li>
175-
<li><a href="#the-cssnamespacerule-interface"><span class="secno">6.4.9 </span>The <code title="">CSSNamespaceRule</code> Interface</a></ol></li>
172+
<li><a href="#the-cssgroupingrule-interface"><span class="secno">6.4.6 </span>The <code title="">CSSGroupingRule</code> Interface</a></li>
173+
<li><a href="#the-cssmediarule-interface"><span class="secno">6.4.7 </span>The <code title="">CSSMediaRule</code> Interface</a></li>
174+
<li><a href="#the-cssfontfacerule-interface"><span class="secno">6.4.8 </span>The <code title="">CSSFontFaceRule</code> Interface</a></li>
175+
<li><a href="#the-csspagerule-interface"><span class="secno">6.4.9 </span>The <code title="">CSSPageRule</code> Interface</a></li>
176+
<li><a href="#the-cssnamespacerule-interface"><span class="secno">6.4.10 </span>The <code title="">CSSNamespaceRule</code> Interface</a></ol></li>
176177
<li><a href="#css-declaration-blocks"><span class="secno">6.5 </span>CSS Declaration Blocks</a>
177178
<ol>
178179
<li><a href="#the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The <code title="">CSSStyleDeclaration</code> Interface</a></ol></li>
@@ -1994,32 +1995,40 @@ <h4 id="the-cssimportrule-interface"><span class="secno">6.4.5 </span>The <code
19941995
list is simply empty, i.e., an <code title="">@import</code> at-rule always has an associated <a href="#css-style-sheet">CSS style sheet</a>.</p>
19951996

19961997

1997-
<h4 id="the-cssmediarule-interface"><span class="secno">6.4.6 </span>The <code title="">CSSMediaRule</code> Interface</h4>
1998+
<h4 id="the-cssgroupingrule-interface"><span class="secno">6.4.6 </span>The <code title="">CSSGroupingRule</code> Interface</h4>
19981999

1999-
<p>The <code><a href="#cssmediarule">CSSMediaRule</a></code> interface represents an <code title="">@media</code> at-rule.</p>
2000-
2001-
<pre class="idl">interface <dfn id="cssmediarule">CSSMediaRule</dfn> : <a href="#cssrule">CSSRule</a> {
2002-
[PutForwards=<a href="#dom-medialist-mediatext" title="dom-MediaList-mediaText">mediaText</a>] readonly attribute <a href="#medialist">MediaList</a> <a href="#dom-cssmediarule-media" title="dom-CSSMediaRule-media">media</a>;
2003-
readonly attribute <a href="#cssrulelist">CSSRuleList</a> <a href="#dom-cssmediarule-cssrules" title="dom-CSSMediaRule-cssRules">cssRules</a>;
2004-
unsigned long <a href="#dom-cssmediarule-insertrule" title="dom-CSSMediaRule-insertRule">insertRule</a>(DOMString rule, unsigned long index);
2005-
void <a href="#dom-cssmediarule-deleterule" title="dom-CSSMediaRule-deleteRule">deleteRule</a>(unsigned long index);
2006-
};</pre>
2000+
<p>The <code><a href="#cssgroupingrule">CSSGroupingRule</a></code> interface represents an at-rule that contains other rules nested inside itself.
20072001

2008-
<p>The <dfn id="dom-cssmediarule-media" title="dom-CSSMediaRule-media"><code>media</code></dfn> attribute must return a <code><a href="#medialist">MediaList</a></code> object for the list of media queries specified
2009-
with the <code title="">@media</code> at-rule.</p>
2002+
<pre class="idl">interface <dfn id="cssgroupingrule">CSSGroupingRule</dfn> : <a href="#cssrule">CSSRule</a> {
2003+
readonly attribute <a href="#cssrulelist">CSSRuleList</a> <a href="#dom-cssgroupingrule-cssrules" title="dom-CSSGroupingRule-cssRules">cssRules</a>;
2004+
unsigned long <a href="#dom-cssgroupingrule-insertrule" title="dom-CSSGroupingRule-insertRule">insertRule</a>(DOMString rule, unsigned long index);
2005+
void <a href="#dom-cssgroupingrule-deleterule" title="dom-CSSGroupingRule-deleteRule">deleteRule</a>(unsigned long index);
2006+
}</pre>
20102007

2011-
<p>The <dfn id="dom-cssmediarule-cssrules" title="dom-CSSMediaRule-cssRules"><code>cssRules</code></dfn> attribute must return a <code><a href="#cssrulelist">CSSRuleList</a></code> object for the
2012-
<a href="#concept-css-rule-child-css-rules" title="concept-css-rule-child-css-rules">child CSS rules</a> specified with the <code title="">@media</code> at-rule.</p>
2008+
<p>The <dfn id="dom-cssgroupingrule-cssrules" title="dom-CSSGroupingRule-cssRules"><code>cssRules</code></dfn> attribute must return a <code><a href="#cssrulelist">CSSRuleList</a></code> object for the
2009+
<a href="#concept-css-rule-child-css-rules" title="concept-css-rule-child-css-rules">child CSS rules</a>.</p>
20132010

2014-
<p>The <dfn id="dom-cssmediarule-insertrule" title="dom-CSSMediaRule-insertRule"><code>insertRule(<var>rule</var>, <var>index</var>)</code></dfn> method must return the result of
2011+
<p>The <dfn id="dom-cssgroupingrule-insertrule" title="dom-CSSGroupingRule-insertRule"><code>insertRule(<var>rule</var>, <var>index</var>)</code></dfn> method must return the result of
20152012
invoking <a href="#insert-a-css-rule">insert a CSS rule</a> <var>rule</var> into the <a href="#concept-css-rule-child-css-rules" title="concept-css-rule-child-css-rules">child CSS rules</a> at
20162013
<var>index</var>.</p>
20172014

2018-
<p>The <dfn id="dom-cssmediarule-deleterule" title="dom-CSSMediaRule-deleteRule"><code>deleteRule(<var>index</var>)</code></dfn> method must <a href="#remove-a-css-rule">remove a CSS rule</a> from the
2015+
<p>The <dfn id="dom-cssgroupingrule-deleterule" title="dom-CSSGroupingRule-deleteRule"><code>deleteRule(<var>index</var>)</code></dfn> method must <a href="#remove-a-css-rule">remove a CSS rule</a> from the
20192016
<a href="#concept-css-rule-child-css-rules" title="concept-css-rule-child-css-rules">child CSS rules</a> at <var>index</var>.</p>
20202017

20212018

2022-
<h4 id="the-cssfontfacerule-interface"><span class="secno">6.4.7 </span>The <code title="">CSSFontFaceRule</code> Interface</h4>
2019+
<h4 id="the-cssmediarule-interface"><span class="secno">6.4.7 </span>The <code title="">CSSMediaRule</code> Interface</h4>
2020+
2021+
<p>The <code><a href="#cssmediarule">CSSMediaRule</a></code> interface represents an <code title="">@media</code> at-rule.</p>
2022+
2023+
<pre class="idl">interface <dfn id="cssmediarule">CSSMediaRule</dfn> : <a href="#cssgroupingrule">CSSGroupingRule</a> {
2024+
[PutForwards=<a href="#dom-medialist-mediatext" title="dom-MediaList-mediaText">mediaText</a>] readonly attribute <a href="#medialist">MediaList</a> <a href="#dom-cssmediarule-media" title="dom-CSSMediaRule-media">media</a>;
2025+
};</pre>
2026+
2027+
<p>The <dfn id="dom-cssmediarule-media" title="dom-CSSMediaRule-media"><code>media</code></dfn> attribute must return a <code><a href="#medialist">MediaList</a></code> object for the list of media queries specified
2028+
with the <code title="">@media</code> at-rule.</p>
2029+
2030+
2031+
<h4 id="the-cssfontfacerule-interface"><span class="secno">6.4.8 </span>The <code title="">CSSFontFaceRule</code> Interface</h4>
20232032

20242033
<p>The <code><a href="#cssfontfacerule">CSSFontFaceRule</a></code> interface represents an <code title="">@font-face</code> at-rule.</p>
20252034

@@ -2031,7 +2040,7 @@ <h4 id="the-cssfontfacerule-interface"><span class="secno">6.4.7 </span>The <cod
20312040
declarations specified within the <code title="">@font-face</code> at-rule.</p>
20322041

20332042

2034-
<h4 id="the-csspagerule-interface"><span class="secno">6.4.8 </span>The <code title="">CSSPageRule</code> Interface</h4>
2043+
<h4 id="the-csspagerule-interface"><span class="secno">6.4.9 </span>The <code title="">CSSPageRule</code> Interface</h4>
20352044

20362045
<p>The <code><a href="#csspagerule">CSSPageRule</a></code> interface represents an <code title="">@page</code> at-rule.</p>
20372046
<p class="issue">Need to define the rules for
@@ -2056,7 +2065,7 @@ <h4 id="the-csspagerule-interface"><span class="secno">6.4.8 </span>The <code ti
20562065
at-rule.</p>
20572066

20582067

2059-
<h4 id="the-cssnamespacerule-interface"><span class="secno">6.4.9 </span>The <code title="">CSSNamespaceRule</code> Interface</h4>
2068+
<h4 id="the-cssnamespacerule-interface"><span class="secno">6.4.10 </span>The <code title="">CSSNamespaceRule</code> Interface</h4>
20602069

20612070
<p>The <code><a href="#cssnamespacerule">CSSNamespaceRule</a></code> interface represents an <code title="">@namespace</code> at-rule.</p>
20622071

cssom/Overview.src.html

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,30 +1917,38 @@ <h4>The <code title>CSSImportRule</code> Interface</h4>
19171917
list is simply empty, i.e., an <code title>@import</code> at-rule always has an associated <span>CSS style sheet</span>.</p>
19181918

19191919

1920+
<h4>The <code title>CSSGroupingRule</code> Interface</h4>
1921+
1922+
<p>The <code>CSSGroupingRule</code> interface represents an at-rule that contains other rules nested inside itself.
1923+
1924+
<pre class=idl>interface <dfn>CSSGroupingRule</dfn> : <span>CSSRule</span> {
1925+
readonly attribute <span>CSSRuleList</span> <span title=dom-CSSGroupingRule-cssRules>cssRules</span>;
1926+
unsigned long <span title=dom-CSSGroupingRule-insertRule>insertRule</span>(DOMString rule, unsigned long index);
1927+
void <span title=dom-CSSGroupingRule-deleteRule>deleteRule</span>(unsigned long index);
1928+
}</pre>
1929+
1930+
<p>The <dfn title=dom-CSSGroupingRule-cssRules><code>cssRules</code></dfn> attribute must return a <code>CSSRuleList</code> object for the
1931+
<span title=concept-css-rule-child-css-rules>child CSS rules</span>.</p>
1932+
1933+
<p>The <dfn title=dom-CSSGroupingRule-insertRule><code>insertRule(<var>rule</var>, <var>index</var>)</code></dfn> method must return the result of
1934+
invoking <span>insert a CSS rule</span> <var>rule</var> into the <span title=concept-css-rule-child-css-rules>child CSS rules</span> at
1935+
<var>index</var>.</p>
1936+
1937+
<p>The <dfn title=dom-CSSGroupingRule-deleteRule><code>deleteRule(<var>index</var>)</code></dfn> method must <span>remove a CSS rule</span> from the
1938+
<span title=concept-css-rule-child-css-rules>child CSS rules</span> at <var>index</var>.</p>
1939+
1940+
19201941
<h4>The <code title>CSSMediaRule</code> Interface</h4>
19211942

19221943
<p>The <code>CSSMediaRule</code> interface represents an <code title>@media</code> at-rule.</p>
19231944

1924-
<pre class=idl>interface <dfn>CSSMediaRule</dfn> : <span>CSSRule</span> {
1945+
<pre class=idl>interface <dfn>CSSMediaRule</dfn> : <span>CSSGroupingRule</span> {
19251946
[PutForwards=<span title=dom-MediaList-mediaText>mediaText</span>] readonly attribute <span>MediaList</span> <span title=dom-CSSMediaRule-media>media</span>;
1926-
readonly attribute <span>CSSRuleList</span> <span title=dom-CSSMediaRule-cssRules>cssRules</span>;
1927-
unsigned long <span title=dom-CSSMediaRule-insertRule>insertRule</span>(DOMString rule, unsigned long index);
1928-
void <span title=dom-CSSMediaRule-deleteRule>deleteRule</span>(unsigned long index);
19291947
};</pre>
19301948

19311949
<p>The <dfn title=dom-CSSMediaRule-media><code>media</code></dfn> attribute must return a <code>MediaList</code> object for the list of media queries specified
19321950
with the <code title>@media</code> at-rule.</p>
19331951

1934-
<p>The <dfn title=dom-CSSMediaRule-cssRules><code>cssRules</code></dfn> attribute must return a <code>CSSRuleList</code> object for the
1935-
<span title=concept-css-rule-child-css-rules>child CSS rules</span> specified with the <code title>@media</code> at-rule.</p>
1936-
1937-
<p>The <dfn title=dom-CSSMediaRule-insertRule><code>insertRule(<var>rule</var>, <var>index</var>)</code></dfn> method must return the result of
1938-
invoking <span>insert a CSS rule</span> <var>rule</var> into the <span title=concept-css-rule-child-css-rules>child CSS rules</span> at
1939-
<var>index</var>.</p>
1940-
1941-
<p>The <dfn title=dom-CSSMediaRule-deleteRule><code>deleteRule(<var>index</var>)</code></dfn> method must <span>remove a CSS rule</span> from the
1942-
<span title=concept-css-rule-child-css-rules>child CSS rules</span> at <var>index</var>.</p>
1943-
19441952

19451953
<h4>The <code title>CSSFontFaceRule</code> Interface</h4>
19461954

0 commit comments

Comments
 (0)