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

Re: [css-counter-styles-3] 'width' descriptors: counting symbols vs. characters

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 9 Apr 2013 14:32:32 -0700
Message-ID: <CAAWBYDCFCUYRh=Kx__4V=SyaW0Zki=KH0TvY82-MEV=oyyxq0g@mail.gmail.com>
To: Simon Sapin <simon.sapin@exyr.org>
Cc: www-style list <www-style@w3.org>
On Tue, Mar 12, 2013 at 4:24 AM, Simon Sapin <simon.sapin@exyr.org> wrote:
> Hi,
>
> Although in most use cases each <symbol> for counter styles is one character
> long, as far as I can tell the empty string or multi-character strings and
> identifiers are valid <symbol> values too.
>
> The 'width' descriptor is defined as counting <symbol> component values, not
> characters after concatenating the <symbol>s. Even ignoring image
> <symbols>s, this is probably better as it avoids the question of what is a
> character vs. combining character vs. grapheme cluster.
>
> Still, the spec for the 'width' descriptor should have a note calling this
> out explicitly. Something like:
>
>     Note: the number of <symbol> component values can be different
>     from the number of characters they form when concatenated.
>
>
> Also, the sentence "… where representations shorter than the width are
> padded with a particular character" should probably say "a particular
> <symbol>" instead. Even the initial value has an empty <symbol>.

Done.

~TJ
Received on Tuesday, 9 April 2013 21:33:19 UTC

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