Sets or retrieves a list of counters to create or reset to zero.
HRESULT value = object.put_counterReset( v);HRESULT value = object.get_counterReset(* p);
a space-delimited list of counters, including one or both of the value in Possible Values.
The name of the counter, optionally followed by an integer.
The initial value of the counter. The default value is 0.
|Applies To||All elements|
- CSS 2.1, Section 12.4
The IHTMLStyle6::counterReset attribute can contain a list of one or more counters, each one optionally followed by an integer. The integer represents the value that the counter is set to after each occurrence of the element.
If an element both resets and increments a counter, the counter is reset first and then incremented. If the same counter is specified more than once, each reset or increment of the counter is processed in the order specified.
The IHTMLStyle6::counterIncrement and IHTMLStyle6::counterReset attributes follow the rules of the CSS cascade. Given two style declarations with the same specificity, only the last one encountered will be processed. For more information about cascade and specificity, see Understanding CSS Selectors.
An element that is not displayed (IHTMLRuleStyle::display attribute set to 'none') and pseudo-elements that do not generate content (IHTMLStyle6::content attribute set to 'normal') cannot increment or reset a counter.
This property requires Windows Internet Explorer to be in IE8 Standards mode rendering.
Minimum supported client
|Windows XP with SP2|
Minimum supported server
|Windows Server 2003|
Build date: 11/12/2012