W3C home > Mailing lists > Public > www-style@w3.org > April 2013

Re: [css-transitions] Animation of paint servers

From: Dirk Schulze <dschulze@adobe.com>
Date: Thu, 18 Apr 2013 10:48:42 -0700
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: "www-style@w3.org list" <www-style@w3.org>, "www-svg@w3.org list" <www-svg@w3.org>
Message-ID: <A10331E1-55E5-4439-BB46-2A5CD9A9F3F4@adobe.com>

On Apr 18, 2013, at 10:37 AM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:

> On Thu, Apr 18, 2013 at 10:32 AM, Dirk Schulze <dschulze@adobe.com> wrote:
>> Hi,
>> 
>> CSS3 Transitions defines animations of paint servers [1]:
>> 
>> ""
>>         paint server (SVG): interpolation is only supported between: gradient to gradient and color to color. They then work as above.
>> ""
>> 
>> This seems to be incompatible with the current model of SVG resources and SVG animation. Currently elements themselves can have triggered animations. It is not possible in SVG at the moment to make a style change on one element affect the content (DOM or SVGDOM) of another one.  From the author perspective it might seems quite plausible. However, it needs more discussion and specification work in the SVG WG and SVG specification. Since animations are from one url to another url, it is unclear how it could be specified at all and how the intermediate results affect the two resources.
>> 
>> I would suggest that CSS Transitions treats paint server references the same as keywords. Note that paint servers are just <linearGradient>, <radialGradient>, <pattern> and possibly <color> elements. The animation of CSS colors on 'fill' and 'stroke' won't be affected and still work as described in the spec.
>> 
>> The feature can be added to a future version of the spec when we outlined this concept.
> 
> Given that you can't construct an intermediate value between two
> references, I agree with this.  They should fall into the generic
> "image" bucket, which transitions with cross-fade() (this transition
> behavior is defined in Images 4, not Transitions).
> 
> When an SVG paint server is literally a color, not a referenced to a
> <solidColor> element, it should transition as a color, though.

I agree, but this does not count as paint server (aka paint server element[1]). Therefore, CSS Transitions does not need to differ between different kind of paint servers.

Greetings,
Dirk

[1] https://svgwg.org/svg2-draft/intro.html#TermPaintServerElement

> 
> ~TJ
Received on Thursday, 18 April 2013 17:49:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:10 UTC