W3C home > Mailing lists > Public > www-style@w3.org > February 2000

Re: Innumerable UI WD errors

From: Matthew Brealey <thelawnet@yahoo.com>
Date: Sun, 27 Feb 2000 17:13:29 -0800 (PST)
Message-ID: <20000228011329.23002.qmail@web903.mail.yahoo.com>
To: www-style@w3.org
--- I wrote:
> key-equivalent
> --------------
> 
> <q>
> A <key-press-combination> is one or more characters with one or more
> modifier keys separated by dashes ('-'). 
> </q>
> 
> This won't work. The tokenization of CSS is such that this is
> unworkable.
> 
> Take this example from the appendix:
> 
> [accesskey]:enabled
> {
>  key-equivalent:accesskey-attr(accesskey);
> }
> 
> That would be parsed as an IDENT, a '(', a IDENT and a ')'. 
> 
> What is desired is for it to be parsed as IDENT DELIM FUNCTION IDENT
> ')',
> but because the longest match determines the token, this wouldn't
> happen.
> 
> There is no way around this because the standard declaration production
> (necessarily) includes IDENT.
> 
> It would be better to use the underscore.

Or even '+', which is the conventional symbol used for these purposes.


=====
----------------------------------------------------------
From Matthew Brealey (http://members.tripod.co.uk/lawnet (for law)or http://members.tripod.co.uk/lawnet/WEBFRAME.HTM (for CSS))
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
Received on Sunday, 27 February 2000 20:13:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:04 GMT