Re: '-vnd' identifiers

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 UTC