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

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

From: Simon Sapin <simon.sapin@exyr.org>
Date: Tue, 12 Mar 2013 12:24:47 +0100
Message-ID: <513F107F.1080703@exyr.org>
To: www-style@w3.org

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>.

Simon Sapin
Received on Tuesday, 12 March 2013 11:25:12 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:25 UTC