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

Re: [css4-images] Color stop syntax

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 23 Oct 2012 09:18:19 -0700
Message-ID: <CAAWBYDAT+MFD9QyBAM_HBPq-K26GqMK71aRY1skSGzb6i_BmMg@mail.gmail.com>
To: Lea Verou <lea@w3.org>
Cc: Dirk Schulze <dschulze@adobe.com>, Rik Cabanier <cabanier@gmail.com>, fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
On Tue, Oct 23, 2012 at 9:07 AM, Lea Verou <lea@w3.org> wrote:
> Btw my suggested syntax wasn't exactly correct. It should use the && operator, not the || one, since both parts are required,

Yup, already took care of it.

> I was also thinking that although the current syntax for two color stop positions is easy to define, it might not be very easy to understand. Perhaps it could be made more readable by introducing a hyphen between the two positions, since they do denote a range. Example:
> background: linear-gradient( white 33%, gray 33% 66%, black 66% );
>  — vs —
> background: linear-gradient( white 33%, gray 33% - 66%, black 66% );

I don't think it's too big of a deal, and we try to avoid introducing
unnecessary syntax just to make things look prettier, unless there's a
big readability win.

~TJ
Received on Tuesday, 23 October 2012 16:19:08 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:01 GMT