W3C home > Mailing lists > Public > www-style@w3.org > May 2005

[CSS3 Lists] Simplifying list styles

From: Allan Sandfeld Jensen <kde@carewolf.com>
Date: Sat, 28 May 2005 17:36:02 +0200
To: www-style@w3.org
Message-Id: <200505281736.02420.kde@carewolf.com>


I've cursed before over the sheer number of list-styles in the CSS 3 Lists 
module. I've just been back and implemented a few more of the more essential 
styles and noticed a few opportunities for simplification.

First of all I think it is inconceivable and undesirable to define every 
single alphabet in CSS 3. Instead I propose we do exactly the same that have 
been done with quotes. 
We define a "list-style-alphabet" property where web designers can specify a 
specific alphabet they might need, and in list-style-type we add an 
"alphabet" style that uses the defined list-style-alphabet.

The definition of list-style-alphabet could be:
list-style-alphabet: [<string]+ | lower-latin | upper-latin | lower-greek | 

The same could be done with all decimal styles. The default decimal style 
would the current latin one, but others could easily be defined:
list-style-decimal: [<string]+ | latin | arabic-indic | persian-urdu | none

As for the ideographic, it could be simplified with a
list-style-ideographic: [traditional-chinese | simple-chinese | japanese] 
[formal | informal]

The definition of these properties could also be advised to be set 
automatically by the user agent when LANG is set, just as with quotes.

Left in list-style-type would now only be the CSS 2.1 values, and the few new  
algorithmic: ethopian, syriac, tamil

As one last comment, I would really wish ::marker was moved to CSS 2.1, just 
to replace the already deprecated display : marker.

Received on Saturday, 28 May 2005 15:36:10 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:18 UTC