Skip to content

Commit b0596a8

Browse files
committed
[css-counter-styles-3] Make 'width' respect negative-capable.
1 parent e3300fc commit b0596a8

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

css-counter-styles-3/Overview.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,11 +1240,12 @@ <h3 id=counter-style-width><span class=secno>3.6. </span> Zero-Padding and
12401240
prefixes/suffixes/negatives), prepend copies of the specified <a
12411241
href="#ltsymbol"><var>&lt;symbol></var></a> to the representation until
12421242
the number of symbols reaches the specified width.
1243-
<p> If the counter value is negative, reduce the width by one or two when
1244-
determining how many copies to prepend, depending on whether the ‘<a
1245-
href="#descdef-negative"><code class=property>negative</code></a>
1246-
descriptor's value is one or two <a
1247-
href="#ltsymbol"><var>&lt;symbol></var></a>s.
1243+
<p> If the counter value is negative and the counter style is <a
1244+
href="#negative-capable"><i>negative-capable</i></a>, reduce the width
1245+
by one or two when determining how many copies to prepend, depending on
1246+
whether the ‘<a href="#descdef-negative"><code
1247+
class=property>negative</code></a>’ descriptor's value is one or two
1248+
<a href="#ltsymbol"><var>&lt;symbol></var></a>s.
12481249
</dl>
12491250

12501251
<div class=example> The most common example of "fixed-width" numbering is

css-counter-styles-3/Overview.src.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,8 @@ <h3 id='counter-style-width'>
866866
until the number of symbols reaches the specified width.
867867

868868
<p>
869-
If the counter value is negative,
869+
If the counter value is negative
870+
and the counter style is <i>negative-capable</i>,
870871
reduce the width by one or two when determining how many copies to prepend,
871872
depending on whether the 'negative' descriptor's value is one or two <var>&lt;symbol></var>s.
872873
</dl>

0 commit comments

Comments
 (0)