W3C home > Mailing lists > Public > www-style@w3.org > November 2009

[gradients] basics

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Sat, 07 Nov 2009 15:36:20 -0800
Message-ID: <4AF60474.7030109@terrainformatica.com>
To: www-style <www-style@w3.org>
Reading this:

The very first phrase:

"A gradient is a browser-generated image specified entirely in CSS, 
which consists of smooth fades between several colors."

appears as technically incorrect.

Common interpretation of the gradient in graphics: rule that defines 
color progression or distribution of colors inside some figure.

Filling of some image by gradient is just one of possible cases.

This for example:
is an example of equidistant gradient.

I mean that insisting on gradient as such a "generated image" cuts many
useful cases upfront.

As I said couple of times already:
gradients belong to the value of 'background-color' attribute more than 
to 'background-image'.

If to think that gradient is such a background-image then we need to
define how such an image is affected by say:

background-size: ...;
background-attachment: ... | fixed | local;
background-repeat: ...;

And second paragraph:
"In many places this specification references a box, such ...."
definitely requires more formal specification. E.g. "would be filled
by an SVG image" is just sort of guess or appellation to
reader's intuition.

Andrew Fedoniouk.

Received on Saturday, 7 November 2009 23:36:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:40 UTC