W3C home > Mailing lists > Public > www-international@w3.org > January to March 2013

Re: Fwd: Case Sensitivity Issue and CSSOM

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Thu, 24 Jan 2013 16:17:10 +0100
Message-ID: <51015076.30409@kozea.fr>
To: fantasai <fantasai.lists@inkedblade.net>
CC: www-style@w3.org, 'WWW International' <www-international@w3.org>
Le 23/01/2013 23:37, fantasai a écrit :
> Given this, I'm leaning towards Richard Ishida's (?) suggestion that we
> leave user-defined idents as case-sensitive and just grandfather in any
> CSS-defined keywords as computing to their lowercase variants.
>
> This would mean that
>     @counter-style DISC { ... }
>     e { list-style-type: DISC; }
> turns into
>     @counter-style disc { ... }
>     e { list-style-type: disc; }
> in the CSSOM even though
>     @counter-style FOO { .. }
>     e { list-style-type: FOO; }
> retains its casing.


What about this?

    @counter-style DISC { ... }
    e { list-style-type: disc; }

I’m not sure what’s the exact behavior you mean. Is it as follows?
"Iff a <counter-style-name> value is an ASCII case-insensitive match for 
one of the 14 CSS 2.1 values, normalize to ASCII lower case. Otherwise 
use the ident value as parsed."

Do we have types other than <counter-style-name> that mix user-defined 
and CSS-defined idents? Would they each have a fixed list of CI values? 
Could such a list expand in a future level?

I’m trying to figure out the details here, but overall I like this idea.

-- 
Simon Sapin
Received on Thursday, 24 January 2013 15:18:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 24 January 2013 15:18:49 GMT