W3C home > Mailing lists > Public > www-svg@w3.org > March 2009

Re: Propositions for the next SVG spec

From: Jeff Schiller <codedread@gmail.com>
Date: Mon, 16 Mar 2009 08:15:27 -0500
Message-ID: <da131fde0903160615g4d207e03gb002218eb06ede89@mail.gmail.com>
To: Stéphane Daviet <stephane.daviet@gmail.com>
Cc: www-svg@w3.org, Chris Lilley <chris@w3.org>, Doug Schepers <schepers@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:41 GMT