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

Re: css3-background: grammar issue

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 23 Feb 2010 12:48:19 -0600
Message-ID: <dd0fbad1002231048j7ef9b675j7c4a5b12ed1d4e3b@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: Yves Lafon <ylafon@w3.org>, fantasai <fantasai.lists@inkedblade.net>, Bert Bos <bert@w3.org>, www-style@w3.org
On Tue, Feb 23, 2010 at 12:41 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
> background: url(img.png) / 90%;
> or...
> background:  / 90%;

Both of these look like nonsense to me.  A slash shouldn't exist
unless there's actually something *there* to separate.

> It is also part of the proposed CSS3 gradient property value, where it is used to separate each half of a series of value pairs.

Nah, I was using it at first to separate the color-stops from the
other information, but I removed it after feedback that it seemed
weird.  Gradients now use commas all throughout.

> It is also used in /* comments */, where it does a similarly good job of separating comments from the values around them.

I think comments are pretty clearly something else altogether.

Received on Tuesday, 23 February 2010 18:49:12 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:43 UTC