Re: Propositions for the next SVG spec

On 3/16/09, Stéphane Daviet <stephane.daviet@gmail.com> wrote:
>
> First, SVG is XML, so it would be great to be able to get some CSS like
> mechanisms to simply change the appearance (colors for instance) of a file.
>
> I would also be great to be able to declare some colors externaly and reuse
> them as constants.

Paint Servers: http://www.w3.org/TR/SVGTiny12/painting.html#PaintServers

file1.svg:
<svg ...>
  <defs>
    <solidColor id="fooColor" solid-color="#4488aa" />
  </defs>
</svg>

file2.svg:
<svg ...>
  <rect fill="url(file1.svg#fooColor)" ... />
</svg>

Regards,
Jeff

Received on Monday, 16 March 2009 13:16:06 UTC