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

[css-counter-styles] Applicability of 'pad'

From: Xidorn Quan <quanxunzhen@gmail.com>
Date: Mon, 17 Feb 2014 16:03:55 +1100
Message-ID: <CAMdq699cUGsicLv=+xNksYCVDE7Xehh4iJsCyYsYJrSvwq77bQ@mail.gmail.com>
To: www-style list <www-style@w3.org>

It is mentioned in the spec that not all systems are negative-capable,
or in particular, 'cyclic', 'fixed', and some 'override' are excluded
from negative-capables. I propose that the same rule should be applied
to 'pad' descriptor as well.

It is obvious that, any 'cyclic' and 'fixed' has only one symbol in
its content according to the definition, as a result, any pad width
larger than 1 only produces a constant prefix for pad part, hence it
is useless since if anyone wants such effect, he could append the pad
symbols to the prefix directly.

In addition, 'pad' for counter styles in such systems could generate a
counterintuitive result. For example, if someone add 'pad' to the
predefined style 'decimal-leading-zero' which uses 'fixed' system,
assuming pad is "3 '0'", what he expects might be -099, -009, ...,
009, 099, but what he actually gets will be -99, 00-09, ..., 0009, 99,
which is strange and unacceptable.

In conclusion, I think 'pad' should not be applied for systems which
is not negative-capable.

Xidorn Quan
Received on Monday, 17 February 2014 05:05:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:19 UTC