W3C home > Mailing lists > Public > public-fx@w3.org > April to June 2011

Re: [css3-images] Defining SVG paint servers as a CSS <image>

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 29 Jun 2011 11:13:49 -0700
Message-ID: <BANLkTimy9gR6DYQQgOnhAVXGk4ko3hvCM_tFyck55GrgQS297Q@mail.gmail.com>
To: robert@ocallahan.org
Cc: Erik Dahlstrom <ed@opera.com>, Rik Cabanier <cabanier@gmail.com>, public-fx@w3.org
On Wed, Jun 29, 2011 at 3:13 AM, Robert O'Callahan <robert@ocallahan.org> wrote:
> On Wed, Jun 29, 2011 at 9:17 PM, Erik Dahlstrom <ed@opera.com> wrote:
>> I think Firefox has some support of this for the 'background' property
>> when used with SVG images, correct me if I'm wrong. I don't think all
>> aspects of that is defined, e.g what coordinate space to use if you
>> reference a sub-svg. Also see the fragment syntax defined for svg[1]. If
>> that syntax applies then you could use one svg with several views defined as
>> an option.
>
> We support using background:-moz-element() to reference an SVG pattern. See
> http://hacks.mozilla.org/2010/08/mozelement/. It's pretty easy to define;
> the object that you're filling with the pattern is just a rectangle the size
> of the background image as determined by background-size etc --- the same as
> it would be for an SVG image without intrinsic dimensions.

Is there any particular reason you're using element() instead of url() for this?

~TJ
Received on Wednesday, 29 June 2011 18:14:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 29 June 2011 18:14:38 GMT