RE: Gradient syntax proposal

Andrew Fedoniouk wrote:
| In short: gradients shall be uniquely addressable.

Seems reasonable. Besides the issue with remote CSS, it could be frustrating if linear-gradient is not directly modifiable via the DOM.

| As I said, there are many cases when you will want to have gradients on 
| boxes other than background box of the element.
| Think about these cases:
| 
| background-color: linear-gradient(top to bottom / yellow, blue);
| 
| border-top-color: yellow;
| border-left-color: linear-gradient(top to bottom / yellow, blue);
| border-right-color: linear-gradient(top to bottom / yellow, blue);
| border-bottom-color: blue;
| 
| column-rule-color: linear-gradient(top to bottom / yellow, blue);

I also want to have gradients on text (which is apparently a trivial thing to implement in GDI+). Is that really an unrealistic possibility if gradient is considered a color?

If the rendering of gradients could be specified for all circumstances, would it not then be possible to associate gradient parameters with unique names within @gradient at-rules and use the names just as you would color keywords?

David Perrell

Received on Saturday, 15 August 2009 15:09:06 UTC