You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the counter value and the counter algorithm for the counter style,
250
250
generate an <dfndata-dfn-type=dfndata-noexport="" id=initial-representation-for-the-counter-value>initial representation for the counter value<aclass=self-linkhref=#initial-representation-for-the-counter-value></a></dfn>.
251
251
If the counter value is negative
252
-
and the counter style is <adata-link-type=dfnhref=#negative-capabletitle=negative-capable>negative-capable</a>,
252
+
and the counter style <adata-link-type=dfnhref=#use-a-negative-signtitle="uses a negative sign">uses a negative sign</a>,
253
253
instead generate an initial representation using the absolute value of the counter value.
<p>Not all <aclass=propertydata-link-type=propdeschref=#descdef-systemtitle=system>system</a> values use a negative sign.
766
-
In particular, a counter style is <dfndata-dfn-type=dfndata-export="" id=negative-capable>negative-capable<aclass=self-linkhref=#negative-capable></a></dfn>
766
+
In particular, a counter style <dfndata-dfn-type=dfndata-export="" id=use-a-negative-signtitle="use a negative sign|uses a negative sign">uses a negative sign<aclass=self-linkhref=#use-a-negative-sign></a></dfn>
767
767
is one where its <aclass=propertydata-link-type=propdeschref=#descdef-systemtitle=system>system</a> value is
or <aclass=cssdata-link-type=maybehref=#valuedef-overridetitle=override>override</a> if the overridden counter style is itself <adata-link-type=dfnhref=#negative-capabletitle=negative-capable>negative-capable</a>.
773
-
If a counter style is not <adata-link-type=dfnhref=#negative-capabletitle=negative-capable>negative-capable</a>,
772
+
or <aclass=cssdata-link-type=maybehref=#valuedef-overridetitle=override>override</a> if the overridden counter style itself <adata-link-type=dfnhref=#use-a-negative-signtitle="uses a negative sign">uses a negative sign</a>.
773
+
If a counter style does not <adata-link-type=dfnhref=#use-a-negative-signtitle="use a negative sign">use a negative sign</a>,
774
774
it ignores the negative sign when <adata-link-type=dfnhref=#generate-a-countertitle="generate a counter representation">generating a counter representation</a>.</p>
<spanclass=note>(Note that, per the algorithm to <adata-link-type=dfnhref=#generate-a-countertitle="generate a counter representation">generate a counter representation</a>,
865
865
this occurs before adding prefixes/suffixes/negatives.)</span>
866
866
If the counter value is negative
867
-
and the counter style is <adata-link-type=dfnhref=#negative-capabletitle=negative-capable>negative-capable</a>,
867
+
and the counter style <adata-link-type=dfnhref=#use-a-negative-signtitle="uses a negative sign">uses a negative sign</a>,
868
868
further reduce <var>difference</var>
869
869
by the number of <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-text-3/#grapheme-cluster0title="grapheme clusters">grapheme clusters</a> in the counter style’s <aclass=propertydata-link-type=propdeschref=#descdef-negativetitle=negative>negative</a> descriptor’s <aclass="production css-code" data-link-type=typehref=#typedef-symboltitle="<symbol>"><symbol></a>(s).</p>
reusing the algorithm but swapping out some of the other descriptors.</p>
1439
1439
1440
1440
<p>All of the counter styles defined in this section have a <aclass=css-codedata-link-type=descriptorhref=#descdef-speak-astitle=speak-as>spoken form</a> of <aclass=css-codedata-link-for=speak-asdata-link-type=valuehref=#valuedef-numerictitle=numeric>numeric</a>,
1441
-
and are <adata-link-type=dfnhref=#negative-capabletitle=negative-capable>negative-capable</a>.</p>
1441
+
and <adata-link-type=dfnhref=#use-a-negative-signtitle="use a negative sign">use a negative sign</a>.</p>
0 commit comments