W3C home > Mailing lists > Public > www-international@w3.org > October to December 2007

Re: [CSS21] Case-insensitivity not defined

From: Addison Phillips <addison@yahoo-inc.com>
Date: Thu, 15 Nov 2007 13:11:18 -0800
Message-ID: <473CB5F6.9040509@yahoo-inc.com>
To: Anne van Kesteren <annevk@opera.com>
CC: fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org, "'WWW International'" <www-international@w3.org>

Anne van Kesteren wrote:
> 
> 
> I don't think it makes much sense here to make this more complex than 
> simply mapping A-Z to a-z and then comparing code points.
> 
> 

Except that you can define identifiers in CSS that are non-ASCII. It 
isn't that hard to implement locale-neutral case-insensitive comparison 
(since most programming languages provide access to an appropriate 
function that implements it) for non-ASCII values. But it is important 
to define what case-insensitive means and to have matching work 
appropriately, regardless of what script people choose for their class 
names and such in CSS.

Also: note that there is probably a Unicode normalization requirement if 
you're going to do code point comparisons and not just a case folding 
(case folding is just one form of text normalization). Hence my 
reference to CharMod.

If CSS is going to do this simpler ASCII-only normalization, then we 
need to clearly note that this is happening (or folks will wonder why 
their stylesheets don't work when they appear like they should on 
visible inspection).

Addison

-- 
Addison Phillips
Globalization Architect -- Yahoo! Inc.
Chair -- W3C Internationalization Core WG

Internationalization is an architecture.
It is not a feature.
Received on Thursday, 15 November 2007 21:12:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:17:15 GMT