W3C home > Mailing lists > Public > www-style@w3.org > November 2011

Re: [css3-lists] glyphs in single string

From: Hkon Wium Lie <howcome@opera.com>
Date: Wed, 23 Nov 2011 17:10:34 +0100
Message-ID: <20173.6906.508352.932820@gargle.gargle.HOWL>
To: Peter Moulder <peter.moulder@monash.edu>
Cc: www-style@w3.org
Also sprach Peter Moulder:

 > Let's try a couple of common uses of @counter-style in all three options
 > to get a feel for how they differ visually:
 > @counter-style lower-norwegian {
 >   type: alphabetic;
 >   glyphs: 'abcdefghijklmnopqrstuvwxyz';
 > }
 > @counter-style lower-norwegian {
 >   type: alphabetic;
 >   glyphs: 'a b c d e f g h i j k l m n o p q r s t u v w x y z   ';
 > }

It's helpful to post syntax examples like these. 

Both examples look fine to me. I have a slight preference for the more
compact form (because I like compact forms), but the space-separated
list is also readable and it's more powerful as it allows
multi-character markers.

 > @counter-style lower-norwegian {
 >   type: alphabetic;
 >   glyphs: 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o'
 >           'p' 'q' 'r' 's' 't' 'u' 'v' 'w' 'x' 'y' 'z' '' '' '';
 > }

This, in contrast, is hard to read/write and hard to detect errors in
-- missing one quote mark would be easy to do, and it would have

Do we really need the longhand? Why not just have a space-separated

              Hkon Wium Lie                          CTO e
howcome@opera.com                  http://people.opera.com/howcome
Received on Wednesday, 23 November 2011 16:11:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:07 UTC