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

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

From: Xidorn Quan <quanxunzhen@gmail.com>
Date: Tue, 18 Feb 2014 09:09:46 +1100
Message-ID: <CAMdq698boHVVf=6Q5yGPtkv8i-hBmsSeHaGGcQMCYd3iy2Hq4w@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style list <www-style@w3.org>
On Tue, Feb 18, 2014 at 2:50 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
> On the subject of decimal-leading-zero, I should actually just rewrite
> that as as decimal override with "pad: 2 '0';".  That option wasn't
> available before!

If you rewrite the style with that, it will only produce leading zero
for non-negative values, while your current draft generates leading
zero for negatives as well. Though, I don't think it's a bad idea,
since it is not clear what form should be applied to negative ones in
CSS2.1. Currently, Gecko generates -1, -2 for it, and WebKit generates
-01, -02.

Regards,
Xidorn Quan
Received on Monday, 17 February 2014 22:10:53 UTC

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