W3C home > Mailing lists > Public > www-style@w3.org > January 2002

Re: '-vnd' identifiers

From: J. David Eisenberg <catcode@catcode.com>
Date: Tue, 29 Jan 2002 10:28:17 -0600 (CST)
To: Mats Tedenvall <Mats.Tedenvall@ausystem.se>
cc: "'www-style@w3.org'" <www-style@w3.org>
Message-ID: <Pine.LNX.4.44.0201291024030.10146-100000@tengu.host4u.net>
On Tue, 29 Jan 2002, Mats Tedenvall wrote:

> Hi,
> I heard that future versions of CSS might support vendor-specific extensions
> by allowing identifiers to begin with '-'. That would allow vendor-specific
> properties such as -wap-input-format (WAP Forum extension) or
> -xyz-inner-border-color (xyz company extension).
> I wonder how that could be syntactical possible, since it would then be
> impossible for a tokenizer to separate negative numbers from identifiers.
> For example, is '-123' a negative number or is it an identifier?

Well, you could change the current definition of an identifier:

   {nmstart}{nmchar}*

to:

   {nmstart}{nmchar}* | -{nmstart}{nmchar}*

That is, an identifier must start with a letter or a dash and a letter. 

-- 
J. David Eisenberg  http://catcode.com/
Received on Tuesday, 29 January 2002 11:28:56 GMT

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