Re: [css4-images] Color stop syntax

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 UTC