<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br><div><div>On Jun 7, 2008, at 2:46 AM, Olivier BERTEN wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; ">IMHO, defining a color as a special gradient is wrong. A color is one of the materials used to build a gradient, while others can be patterns and textures/tiles. You should be able to build a gradient with any type of fill element (or stroke if it's a stroke gradient). So a color should be a stop attribute, not a single stop gradient.</span></blockquote></div><br><div>I think we're bumping up a bit here against "should" vs "is" with SVG. Especially with SVG 1.1 where there was no &lt;solidColor> element, a single-stop gradient was the main way to be able to functionally get a reusable color (outside of CSS).</div><div><br></div><div>&lt;linearGradient id="spotYellow">&lt;stop stop-color="#ff6"/>&lt;/linearGradient></div><div>...</div><div>&lt;rect fill="url(#spotYellow)" stroke="none" x="100" y="100" width="320" height="240" /></div><div><br></div></body></html>