W3C home > Mailing lists > Public > www-style@w3.org > February 2013

Re: [css-counter-styles] Influence of 'system' on 'negative' and 'width'

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 20 Feb 2013 14:32:06 -0800
Message-ID: <CAAWBYDAqGT9rDortdX5OOKmYFJ7sPNRQxbo8iOiBrsviZzgauA@mail.gmail.com>
To: Peter Moulder <peter.moulder@monash.edu>, www-style list <www-style@w3.org>
On Wed, Feb 20, 2013 at 12:32 PM, Peter Moulder
<peter.moulder@monash.edu> wrote:
> On Wed, Feb 20, 2013 at 08:07:05AM -0800, Tab Atkins Jr. wrote:
>> On Wed, Feb 20, 2013 at 3:06 AM, Peter Moulder <peter.moulder@monash.edu> wrote:
>> > I'd guess that 'negative' should apply to 'numeric', 'additive', and CJK
>> > longhand systems, but not 'cyclic', and I believe not 'fixed'.  It might
>> > as well apply to the ethiopic system too, just for override purposes.
>
> (Making the list complete: Applying to 'symbolic' and 'alphabetic' might also
> be reasonable, always using fallback for zero.)
>
>> There wasn't actually any reason to not support negatives on those, so
>> I relaxed the restriction.  I should reset 'negative' to "" for
>> several styles, though, thanks for reminding me.
>
> I thought that for cyclic, and ‘fixed -N’, it was also intended not to negate
> the counter value before running the algorithm, i.e. I thought that counter
> value -1 in
>
>   system: cyclic;
>   symbols: "1mod3" "2mod3" "0mod3"
>
> was intended to give "2mod3", while in
>
>   system: fixed -1
>   symbols "neg1" "zero" "one"
>
> was intended to give "neg1"; whereas in the current spec one instead gets the
> counter values for 1 (with any negative affixes), i.e. "-1mod3" and "-one"
> respectively.

Hm, for 'fixed' you're right - we do need to leave it alone.  'cyclic'
should probably do the same, you're right.

I've defined "negative-capable" for a counter style, and made
everything that needs it depend on the counter style being
negative-capable.  If you find anything I missed, let me know!

~TJ
Received on Wednesday, 20 February 2013 22:32:53 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:06 GMT