Gets or sets a list of counters to create or reset to zero.
HRESULT IHTMLCSSStyleDeclaration::get_counterReset(BSTR *p);HRESULT IHTMLCSSStyleDeclaration::put_counterReset(BSTR v);
- Pointer to a variable of type BSTR that receives a space-delimited list of counters, including one or both of the value in Possible Values.
- BSTR that specifies a space-delimited list of counters, including one or both of the value in Possible Values.
identifier The name of the counter, optionally followed by an integer. integer The initial value of the counter. The default value is 0.
Returns S_OK if successful, or an error value otherwise.
The counter-reset 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 counter-increment and counter-reset 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.
This property requires Internet Explorer to be in IE8 Standards mode rendering.