Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 1118343 of CSSCounterStyleRule

  • Revision slug: Web/API/CSSCounterStyleRule
  • Revision title: CSSCounterStyleRule
  • Revision id: 1118343
  • Created:
  • Creator: Sebastianz
  • Is current revision? No
  • Comment

Revision Content

{{APIRef}}

The CSSCounterStyleRule {{glossary("interface")}} represents an {{cssxref("@counter-style")}} at-rule.

Inheritance

This interface inherits from the following parent interfaces:

{{InheritanceDiagram}}

Properties

This interface also inherits properties from its parent {{domxref("CSSRule")}}.

{{domxref("CSSCounterStyleRule.name")}}
Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("<counter-style-name>")}} defined for the associated rule.
{{domxref("CSSCounterStyleRule.system")}}
Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/system", "system")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
{{domxref("CSSCounterStyleRule.symbols")}}
Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/symbols", "symbols")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
{{domxref("CSSCounterStyleRule.additiveSymbols")}}
Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/additive-symbols", "additive-symbols")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
{{domxref("CSSCounterStyleRule.negative")}}
Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/negative", "negative")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
{{domxref("CSSCounterStyleRule.prefix")}}
Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/prefix", "prefix")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
{{domxref("CSSCounterStyleRule.suffix")}}
Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/suffix", "suffix")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
{{domxref("CSSCounterStyleRule.range")}}
Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/range", "range")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
{{domxref("CSSCounterStyleRule.pad")}}
Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/pad", "pad")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
{{domxref("CSSCounterStyleRule.speakAs")}}
Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/speak-as", "speak-as")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.
{{domxref("CSSCounterStyleRule.fallback")}}
Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/fallback", "fallback")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.

Methods

This interface doesn't implement any specific method but inherits methods from its parent {{domxref("CSSRule")}}.

Specifications

Specification Status Comment
{{SpecName("CSS3 Counter Styles", "#the-csscounterstylerule-interface", "CSSCounterStyleRule")}} {{Spec2("CSS3 Counter Styles")}} Initial definition

Browser compatibility

{{CompatibilityTable}}
Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{CompatNo}} {{CompatNo}} {{CompatGeckoDesktop("33.0")}} {{CompatNo}} {{CompatNo}} {{CompatNo}}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{CompatNo}} {{CompatGeckoMobile("33.0")}} {{CompatNo}} {{CompatNo}} {{CompatNo}}

See also

  • {{cssxref("@counter-style")}}

Revision Source

<div>{{APIRef}}</div>

<p>The <strong><code>CSSCounterStyleRule</code></strong> {{glossary("interface")}} represents an {{cssxref("@counter-style")}} <a href="/en-US/docs/Web/CSS/At-rule">at-rule</a>.</p>

<h2 id="Inheritance">Inheritance</h2>

<p>This interface inherits from the following parent interfaces:</p>

<p>{{InheritanceDiagram}}</p>

<h2 id="Properties">Properties</h2>

<p><em>This interface also inherits properties from its parent {{domxref("CSSRule")}}.</em></p>

<dl>
 <dt>{{domxref("CSSCounterStyleRule.name")}}</dt>
 <dd>Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("&lt;counter-style-name&gt;")}} defined for the associated rule.</dd>
 <dt>{{domxref("CSSCounterStyleRule.system")}}</dt>
 <dd>Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/system", "system")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.</dd>
 <dt>{{domxref("CSSCounterStyleRule.symbols")}}</dt>
 <dd>Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/symbols", "symbols")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.</dd>
 <dt>{{domxref("CSSCounterStyleRule.additiveSymbols")}}</dt>
 <dd>Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/additive-symbols", "additive-symbols")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.</dd>
 <dt>{{domxref("CSSCounterStyleRule.negative")}}</dt>
 <dd>Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/negative", "negative")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.</dd>
 <dt>{{domxref("CSSCounterStyleRule.prefix")}}</dt>
 <dd>Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/prefix", "prefix")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.</dd>
 <dt>{{domxref("CSSCounterStyleRule.suffix")}}</dt>
 <dd>Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/suffix", "suffix")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.</dd>
 <dt>{{domxref("CSSCounterStyleRule.range")}}</dt>
 <dd>Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/range", "range")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.</dd>
 <dt>{{domxref("CSSCounterStyleRule.pad")}}</dt>
 <dd>Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/pad", "pad")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.</dd>
 <dt>{{domxref("CSSCounterStyleRule.speakAs")}}</dt>
 <dd>Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/speak-as", "speak-as")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.</dd>
 <dt>{{domxref("CSSCounterStyleRule.fallback")}}</dt>
 <dd>Is a {{domxref("DOMString")}} object that contains the serialization of the {{cssxref("@counter-style/fallback", "fallback")}} descriptor defined for the associated rule. If the descriptor was not specified in the associated rule, the attribute returns an empty string.</dd>
</dl>

<h2 id="Methods">Methods</h2>

<p><em>This interface doesn't implement any specific method but inherits methods from its parent {{domxref("CSSRule")}}.</em></p>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName("CSS3 Counter Styles", "#the-csscounterstylerule-interface", "CSSCounterStyleRule")}}</td>
   <td>{{Spec2("CSS3 Counter Styles")}}</td>
   <td>Initial definition</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<div>{{CompatibilityTable}}</div>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Edge</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatGeckoDesktop("33.0")}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Phone</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatGeckoMobile("33.0")}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="See_also">See also</h2>

<ul>
 <li>{{cssxref("@counter-style")}}</li>
</ul>
Revert to this revision