Re: [css3-images] Making gradients readable

On Tue, Nov 1, 2011 at 3:44 PM, Brian Manthos <brianman@microsoft.com> wrote:
> Another reason is that I see the general syntax as:
>        <gradient-type>-gradient([<optional-parameters> ,] <color-stop>[, <color-stop>]+)
> where <gradient-type> is either "linear" or "radial" for CSS3, and <optional-parameters> resolves to one of
>        <linear-optional-parameters>
>        <radial-optional-parameters>
>
> I also believe this easily scales to all gradient types that we might propose for CSS going forward.

I *strongly* agree here.  Once we started playing with the literate
syntaxes, this fell out as an obvious pattern that we can reuse in the
future.

~TJ

Received on Thursday, 3 November 2011 21:34:49 UTC