Skip to content

Commit 885011c

Browse files
committed
Added IDL for @counter-style. p=tabatkins
1 parent 425a93f commit 885011c

2 files changed

Lines changed: 111 additions & 31 deletions

File tree

css3-lists/Overview.html

Lines changed: 79 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525

2626
<h1>CSS Lists and Counters Module Level 3</h1>
2727

28-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 15 June 2012</h2>
28+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 15 August 2012</h2>
2929

3030
<dl>
3131
<dt>This version:
3232

33-
<dd><!--<a href="http://www.w3.org/TR/2012/WD-css3-lists-20120615">http://www.w3.org/TR/2012/WD-css3-lists-20120615</a></dd>-->
33+
<dd><!--<a href="http://www.w3.org/TR/2012/WD-css3-lists-20120815">http://www.w3.org/TR/2012/WD-css3-lists-20120815</a></dd>-->
3434
<a
3535
href="http://dev.w3.org/csswg/css3-lists/">http://dev.w3.org/csswg/css3-lists/</a>
3636

@@ -251,7 +251,16 @@ <h2 class="no-num no-toc" id=contents> Table of contents</h2>
251251
<li><a href="#predefined-counters"><span class=secno>12. </span>
252252
Predefined Counter Styles</a>
253253

254-
<li><a href="#ua-stylesheet"><span class=secno>13. </span> Sample style
254+
<li><a href="#apis"><span class=secno>13. </span>APIs</a>
255+
<ul class=toc>
256+
<li><a href="#extentions-to-cssrule-interface"><span class=secno>13.1.
257+
</span> Extensions to the <code>CSSRule</code> interface</a>
258+
259+
<li><a href="#the-csscounterstylerule-interface"><span class=secno>13.2.
260+
</span> The <code>CSSCounterStyleRule</code> interface</a>
261+
</ul>
262+
263+
<li><a href="#ua-stylesheet"><span class=secno>14. </span> Sample style
255264
sheet for HTML</a>
256265

257266
<li class=no-num><a href="#profiles"> Profiles</a>
@@ -3031,7 +3040,43 @@ <h2 id=predefined-counters><span class=secno>12. </span> Predefined Counter
30313040
but didn't make it to CSS2.1? They're all present in the "Additional
30323041
Predefined Counter Styles" document.
30333042

3034-
<h2 id=ua-stylesheet><span class=secno>13. </span> Sample style sheet for
3043+
<h2 id=apis><span class=secno>13. </span>APIs</h2>
3044+
3045+
<h3 id=extentions-to-cssrule-interface><span class=secno>13.1. </span>
3046+
Extensions to the <code>CSSRule</code> interface</h3>
3047+
3048+
<p> The <code>CSSRule</code> interface is extended as follows:
3049+
3050+
<pre class=idl><!--
3051+
-->partial interface CSSRule {
3052+
<!--
3053+
--> const unsigned short COUNTER_STYLE_RULE = 11;
3054+
<!--
3055+
-->}</pre>
3056+
3057+
<h3 id=the-csscounterstylerule-interface><span class=secno>13.2. </span>
3058+
The <a href="#csscounterstylerule"><code>CSSCounterStyleRule</code></a>
3059+
interface</h3>
3060+
3061+
<p> The <dfn id=csscounterstylerule>CSSCounterStyleRule</dfn> interface
3062+
represents a ‘<code class=css>@counter-style</code>’ rule.
3063+
3064+
<pre class=idl><!--
3065+
-->interface CSSCounterStyleRule : CSSRule {
3066+
<!--
3067+
--> readonly attribute CSSStyleDeclaration style;
3068+
<!--
3069+
-->}</pre>
3070+
3071+
<dl class=idl-attributes>
3072+
<dt><code>style</code> of type <code>CSSStyleDeclaration</code>, readonly
3073+
3074+
<dd> The <code>style attribute must return a
3075+
<code>CSSStyleDeclaration</code> block that contains the descriptors
3076+
specified within the <code>@counter-style</code> rule. </code>
3077+
</dl>
3078+
3079+
<h2 id=ua-stylesheet><span class=secno>14. </span> Sample style sheet for
30353080
HTML</h2>
30363081

30373082
<p>This section is informative, not normative. HTML itself defines the
@@ -3282,12 +3327,11 @@ <h2 class=no-num id=property-index>Property index</h2>
32823327
<td>all
32833328

32843329
<tr>
3285-
<th><a class=property href="#list-style">list-style</a>
3330+
<th><a class=property href="#list-style-image">list-style-image</a>
32863331

3287-
<td>&lt;‘list-style-type’> || &lt;‘list-style-position’> ||
3288-
&lt;‘list-style-image’>
3332+
<td>&lt;image> | none
32893333

3290-
<td>see individual properties
3334+
<td>
32913335

32923336
<td>list items
32933337

@@ -3298,11 +3342,12 @@ <h2 class=no-num id=property-index>Property index</h2>
32983342
<td>visual
32993343

33003344
<tr>
3301-
<th><a class=property href="#list-style-image">list-style-image</a>
3345+
<th><a class=property
3346+
href="#list-style-position">list-style-position</a>
33023347

3303-
<td>&lt;image> | none
3348+
<td>inside | outside
33043349

3305-
<td>none
3350+
<td>outside
33063351

33073352
<td>list items
33083353

@@ -3313,12 +3358,12 @@ <h2 class=no-num id=property-index>Property index</h2>
33133358
<td>visual
33143359

33153360
<tr>
3316-
<th><a class=property
3317-
href="#list-style-position">list-style-position</a>
3361+
<th><a class=property href="#list-style">list-style</a>
33183362

3319-
<td>inside | outside
3363+
<td>&lt;‘list-style-type’> || &lt;‘list-style-position’> ||
3364+
&lt;‘list-style-image’>
33203365

3321-
<td>outside
3366+
<td>see individual properties
33223367

33233368
<td>list items
33243369

@@ -3344,24 +3389,24 @@ <h2 class=no-num id=property-index>Property index</h2>
33443389
<td>visual
33453390

33463391
<tr>
3347-
<th><span class=property>‘display’</span>
3392+
<th><span class=property></span>
33483393

3349-
<td>inline-list-item
3394+
<td>list-item | list-container
33503395

3351-
<td>same as CSS2.1
3396+
<td>list-item
33523397

3353-
<td>same as CSS2.1
3398+
<td>list items
33543399

3355-
<td>same as CSS2.1
3400+
<td>yes
33563401

3357-
<td>same as CSS2.1
3402+
<td>N/A
33583403

3359-
<td>same as CSS2.1
3404+
<td>visual
33603405

33613406
<tr>
3362-
<th><span class=property>‘position’</span>
3407+
<th><span class=property></span>
33633408

3364-
<td>‘marker’
3409+
<td>
33653410

33663411
<td>same as CSS2.1
33673412

@@ -3374,19 +3419,19 @@ <h2 class=no-num id=property-index>Property index</h2>
33743419
<td>same as CSS2.1
33753420

33763421
<tr>
3377-
<th><a class=property href="#marker-attachment0">marker-attachment</a>
3422+
<th><span class=property></span>
33783423

3379-
<td>list-item | list-container
3424+
<td>
33803425

3381-
<td>list-item
3426+
<td>same as CSS2.1
33823427

3383-
<td>list items
3428+
<td>same as CSS2.1
33843429

3385-
<td>yes
3430+
<td>same as CSS2.1
33863431

3387-
<td>N/A
3432+
<td>same as CSS2.1
33883433

3389-
<td>visual
3434+
<td>same as CSS2.1
33903435
</table>
33913436
<!--end-properties-->
33923437

@@ -3464,6 +3509,9 @@ <h2 class=no-num id=index>Index</h2>
34643509
<li>counter symbol, <a href="#counter-symbol"
34653510
title="counter symbol"><strong>10.7.</strong></a>
34663511

3512+
<li>CSSCounterStyleRule, <a href="#csscounterstylerule"
3513+
title=CSSCounterStyleRule><strong>13.2.</strong></a>
3514+
34673515
<li>current tuple, <a href="#current-tuple"
34683516
title="current tuple"><strong>10.1.6.</strong></a>
34693517

css3-lists/Overview.src.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,6 +2005,38 @@ <h2 id='predefined-counters'>
20052005
<p class='issue'>Do we need to predefine the styles that are present in CSS2 but didn't make it to CSS2.1? They're all present in the "Additional Predefined Counter Styles" document.</p>
20062006

20072007

2008+
<h2 id="apis">APIs</h2>
2009+
2010+
<h3 id='extentions-to-cssrule-interface'>
2011+
Extensions to the <code>CSSRule</code> interface</h3>
2012+
2013+
<p>
2014+
The <code>CSSRule</code> interface is extended as follows:
2015+
2016+
<pre class='idl'><!--
2017+
-->partial interface CSSRule {&#xa;<!--
2018+
--> const unsigned short COUNTER_STYLE_RULE = 11;&#xa;<!--
2019+
-->}</pre>
2020+
2021+
2022+
<h3 id="the-csscounterstylerule-interface">
2023+
The <code>CSSCounterStyleRule</code> interface</h3>
2024+
2025+
<p>
2026+
The <dfn>CSSCounterStyleRule</dfn> interface represents a ''@counter-style'' rule.</p>
2027+
2028+
<pre class='idl'><!--
2029+
-->interface CSSCounterStyleRule : CSSRule {&#xa;<!--
2030+
--> readonly attribute CSSStyleDeclaration style;&#xa;<!--
2031+
-->}</pre>
2032+
2033+
<dl class='idl-attributes'>
2034+
<dt><code>style</code> of type <code>CSSStyleDeclaration</code>, readonly
2035+
<dd>
2036+
The <code>style</style> attribute must return a <code>CSSStyleDeclaration</code> block that contains the descriptors specified within the <code>@counter-style</code> rule.
2037+
</dl>
2038+
2039+
20082040
<h2 id='ua-stylesheet'>
20092041
Sample style sheet for HTML</h2>
20102042

0 commit comments

Comments
 (0)