- From: Tab Atkins Jr. <jackalmage@gmail.com>
- Date: Wed, 13 Aug 2014 10:31:14 -0700
- To: "L. David Baron" <dbaron@dbaron.org>
- Cc: www-style list <www-style@w3.org>
On Thu, Apr 24, 2014 at 3:36 PM, L. David Baron <dbaron@dbaron.org> wrote: > Two parts of the spec say inconsistent things about the interaction > of the 'negative' and 'pad' descriptors. > > I will explain both of them in terms of how they apply to the > definition of decimal-leading-zero in > http://dev.w3.org/csswg/css-counter-styles/#simple-numeric , which > has effectively: > pad: 2 '0'; > negative: '-'; > > http://dev.w3.org/csswg/css-counter-styles/#generate-a-counter says > that 'pad' is applied first, and this is done by: > # 4. If the representation uses less symbols than specified in > # the counter style’s pad descriptor, prepend symbols to the > # representation as specified in the pad descriptor. > > On the other hand, > http://dev.w3.org/csswg/css-counter-styles/#counter-style-pad says: > # If the counter value is negative and the counter style is > # negative-capable, further reduce difference by the number of > # grapheme clusters in the counter style’s negative descriptor’s > # <symbol>(s). > > It seems both that these should be consistent, and that this > shouldn't be defined in two places. > > I'd note that the testcase > data:text/html,<ol start="-1" style="list-style-type:decimal-leading-zero"><li><li><li></ol> > behaves differently in Firefox and Chrome. Though I'd marked this as accepted in the DoC, I hadn't actually fixed it. Done now - I removed the first clause from the line in "generate a counter style", so it always goes down to 'pad' and does all the necessary checks. ~TJ
Received on Wednesday, 13 August 2014 17:32:09 UTC