W3C home > Mailing lists > Public > www-style@w3.org > October 2001

Re: syntax questions, !important and rect

From: Peter S. Linss <peter@linss.com>
Date: Thu, 04 Oct 2001 13:31:09 -0700
Message-ID: <3BBCC70D.7C08C672@linss.com>
To: www-style@w3.org
CC: todd fahrner <fahrner@pobox.com>
Whitespace is explicitly allowed between the "!" and "important". See:
http://www.w3.org/TR/REC-CSS2/grammar.html

"!{w}important"         {return IMPORTANT_SYM;}

todd fahrner wrote:

> I'm passing along 2 questions by a CSS implementor who wishes to remain
> anonymous:
>
> > The spec defines IMPORTANT_SYM as
> >
> > !important
> >
> > Some of the examples use
> >
> > !important
> >
> > and others use
> >
> > ! important
> >
> > The CSS Validator seems to accept any amount of space between ! and
> > important.
> >
> > Do you know what the truth is?

>
> >
> > =======
> >
> > The CSS2 spec says rect is
> >
> > rect(top right left bottom)
> >
> > but in their example they use
> >
> > rect(top, right, left, bottom)
> >
> > Are the commas required or not?
> >
> > GoLive generates css without the commas, and so does StyleMaster. The
> > validator wants the commas.  The css "works" in IE 5 with or without
> > the commas.  Neither appears to work in Mozilla (for clip).
>
> --
> todd fahrner
Received on Thursday, 4 October 2001 16:32:42 GMT

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