|
View:
New views
14 Messages
—
Rating Filter:
Alert me
|
|
|
Changing attributeType="CSS"http://www.w3.org/TR/SVG11/animate.html#AttributeTypeAttribute
For the attribute "attributeType" the spec says this about the value "CSS": "CSS" This specifies that the value of "attributeName" is the name of a CSS property defined as animatable in this specification. If the author has explicitly specified "CSS" then clearly they want to target CSS, and limiting the permitted properties unnecessarily limits the capabilities of SMIL animation [compared to CSS animation]. It would seem better not to impose an artificial limit, and to enable parity between SMIL animation and CSS animation. Mozilla would like to propose striking the words "defined as animatable in this specification". Jonathan |
|
|
Re: Changing attributeType="CSS"On Friday, October 30, 2009, 5:23:38 PM, Jonathan wrote:
JW> http://www.w3.org/TR/SVG11/animate.html#AttributeTypeAttribute JW> For the attribute "attributeType" the spec says this about the value "CSS": JW> "CSS" JW> This specifies that the value of "attributeName" is the name JW> of a CSS property defined as animatable in this specification. JW> If the author has explicitly specified "CSS" then clearly they want to target JW> CSS, and limiting the permitted properties unnecessarily limits the capabilities JW> of SMIL animation [compared to CSS animation]. It would seem better not to JW> impose an artificial limit, and to enable parity between SMIL animation and CSS JW> animation. JW> Mozilla would like to propose striking the words "defined as animatable in this JW> specification". How about 'defined as animatable'? The mai value of the CSS and XML options is to resolve ambiguity for occasional name clashes. Mostly, the default value works fine. -- Chris Lilley mailto:chris@... Technical Director, Interaction Domain W3C Graphics Activity Lead Co-Chair, W3C Hypertext CG |
|
|
|
|
|
Re: Changing attributeType="CSS"On 2009-10-30 8:04 PM, Dr. Olaf Hoffmann wrote:
> I think, SMIL requires, that a format specifies, which attributes > and properties are animatable. Definition: "all properties". > And in some cases one has > to find out even more details (for example if a meaningful > distance exists is concering paced animation for complex > types). I don't follow why this relates to determining whether a property is animatable. > If 'defined as animatable in this specification' is removed, > what defines, what is animatable and what could be the > purpose to indicate which one is animatable and which > one not? It might have reasons, if something is indicated > to be not animatable (maybe it would help to indicate the > reason in the specification, however, to avoid more > questions). Are there any properties for which you would want to specifically prohibit animation? If so, why? If not, maybe the animatable entry in the property tables should just be removed. > And about: > "It would seem better not to impose an artificial limit, and to > enable parity between SMIL animation and CSS animation.' > > attributeType is always related to SMIL animation and > nothing else. For attributeType XML an attribute is animated > and for attributeType CSS a property, both with SMIL > animation. And in both cases the SVG specification notes > for every attribute or property, whether it is animatable or not. > I cannot see any disparity, expecially because for attributeType > XML is noted too: 'The attribute must be defined as animatable in this > specification'. I'm saying that with the current CSS proposals for transitions and animations you can animate more properties than you can with SMIL animation. Why would we (or anyone) want that to be the case? Jonathan |
|
|
Re: Changing attributeType="CSS"2009/10/31 Dr. Olaf Hoffmann <Dr.O.Hoffmann@...>
Or do you mean the current CSS proposals for transitions and animation? We want the set of properties animateable by CSS Transitions and SVG Animation to be the same (when specified via specifiedType="CSS"), and for this set to be every CSS property. This will minimize author confusion and maximise the power of SVG Animation. This is more important than following the letter of the SMIL spec. For legacy compatibility reasons, we can't do this for specifiedType="auto". I propose that the set of CSS properties animated by specifiedType="auto" be fixed forever to the set of properties it animates today, as defined by the SVG spec. This will prevent compatibility problems in the future. and such a How CSS Transitions and SMIL interact is another topic. It's worth discussing, but it needs a separate thread. Rob -- "He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6] |
|
|
Re: Changing attributeType="CSS"On Friday, October 30, 2009, 8:56:18 PM, Robert wrote:
ROC> We want the set of properties animateable by CSS Transitions and ROC> SVG Animation to be the same Yes. ROC> For legacy compatibility reasons, we can't do this for ROC> specifiedType="auto". Could you explain what legacy compatibility reasons mean that you can't do this? Its the default settings, so it would be nice if it worked well. And it would be nice also, if authors didn't have to explicitly say attributeType="CSS" all the time. or, worse, remember which CSS properties are also specified in SVG, miss it off for those, add it for the others. Which is what you seem to be suggesting. ROC> I propose that the set of CSS properties ROC> animated by specifiedType="auto" be fixed forever to the set of ROC> properties it animates today, as defined by the SVG spec. That would be bad; see your sentence quoted above. -- Chris Lilley mailto:chris@... Technical Director, Interaction Domain W3C Graphics Activity Lead Co-Chair, W3C Hypertext CG |
|
|
Re: Changing attributeType="CSS"On Sat, Oct 31, 2009 at 9:41 AM, Chris Lilley <chris@...> wrote:
On Friday, October 30, 2009, 8:56:18 PM, Robert wrote: It means that anyone who's using <animate attribute="height"> instantly breaks, because it would animate the 'height' CSS property which does nothing in SVG. Jonathan has a new idea that's better than mine. I'll let him propose it :-). -- "He was pierced for our transgressions, he was crushed for our iniquities; the punishment that brought us peace was upon him, and by his wounds we are healed. We all, like sheep, have gone astray, each of us has turned to his own way; and the LORD has laid on him the iniquity of us all." [Isaiah 53:5-6] |
|
|
|
|
|
|
|
|
Re: Changing attributeType="CSS"On 2009-10-31 12:06 PM, Dr. Olaf Hoffmann wrote:
> Jonathan Watt: > >>> And in some cases one has >>> to find out even more details (for example if a meaningful >>> distance exists is concering paced animation for complex >>> types). >> >> I don't follow why this relates to determining whether a property is >> animatable. > > You have to do more than just to indicate, that this is animatable, > you have to do some research, how to animate this without creating > a conflict with what is already defined in SMIL implictly. I don't see any conflict between the proposal for attributeType="CSS" and "what is already defined in SMIL implictly". Can you give a concrete example of a conflict that you see? > Of course we can say, that this belongs to the process to determine > the animatibility of a property or attribute, but this is in some cases > not as trivial as to note 'animatable', else we get the funny situation > as with the animation of 'transform' in SVG 1.1 or within some > drafts of SVG tiny 1.2 for some complex types. For complex types there will sometimes be ambiguity about exactly *how* they should animate, yes. We should clarify the cases where we realize there's an issue ahead of time, and if implementers raise new questions about others as they implement, then we should clarify them at that point. >> Are there any properties for which you would want to specifically prohibit >> animation? If so, why? If not, maybe the animatable entry in the property >> tables should just be removed. > > If we have a look into SVG tiny 1.2 property table, we find only > 'direction' and 'unicode-bidi' to be indicated as not animatable. > It is not explained, why they are not animatable, but one can > guess, that this happened to protect author from doing things, > that can confuse the audience on a very basic level of understanding > the document purpose itself. There's no way to prevent an author from confusing their audience if that's what they want to do. I see no good reason to animate these properties, but equally I see no good reason to explicitly prohibit them from being animated. > In SVG 1.1 we have others: > 'writing-mode', 'glyph-orientation-vertical', 'glyph-orientation-horizontal', > 'enable-background'. You can change these with script, so I see no good reason to actively *prohibit* changing them with SMIL. >> I'm saying that with the current CSS proposals for transitions and animations >> you can animate more properties than you can with SMIL animation. Why would >> we (or anyone) want that to be the case? > > I read and commented these proposals already and this is anyway not much > related to SMIL animation. It uses a completely different approach and should > not be mixed with the more advanced and more complex SMIL approach. I never proposed mixing. > It has some advantages in its simplicity and especially the transition > proposal provides an interesting functionality, one does not have with SMIL > at all or not in a simple way. > > And looking in the current CSS transition draft indeed the opposite is true, > there are only a few properties indicated to be animatable, I only looked in CSS animations for restrictions and saw none - I erroneously assumed that the same was true of transitions. Anyway, my point is that I don't see any need to restrict what SMIL can animate relative to *either* of these CSS proposals. Jonathan |
|
|
Re: Changing attributeType="CSS"Jonathan Watt:
> On 2009-10-31 12:06 PM, Dr. Olaf Hoffmann wrote: > > Jonathan Watt: > >>> And in some cases one has > >>> to find out even more details (for example if a meaningful > >>> distance exists is concering paced animation for complex > >>> types). > >> > >> I don't follow why this relates to determining whether a property is > >> animatable. > > > > You have to do more than just to indicate, that this is animatable, > > you have to do some research, how to animate this without creating > > a conflict with what is already defined in SMIL implictly. > > I don't see any conflict between the proposal for attributeType="CSS" and > "what is already defined in SMIL implictly". Can you give a concrete > example of a conflict that you see? > > > Of course we can say, that this belongs to the process to determine > > the animatibility of a property or attribute, but this is in some cases > > not as trivial as to note 'animatable', else we get the funny situation > > as with the animation of 'transform' in SVG 1.1 or within some > > drafts of SVG tiny 1.2 for some complex types. > > For complex types there will sometimes be ambiguity about exactly *how* > they should animate, yes. We should clarify the cases where we realize > there's an issue ahead of time, and if implementers raise new questions > about others as they implement, then we should clarify them at that point. > This is what I meant, it is not directly the question, whether it is animatable or not, but what has to be written in the specification for example whether it is additive or not or only discrete or if there is a meaningful way to perform a paced animation. This applies to both attributes and properties. This means just, if you remove general restrictions, you have to look at the same time on each property or attribute to see, what you have to add as information about for example additive behaviour. This does not mean, that one should not remove general restrictions. It means only, that one has to be careful, if this is done. It means: Don't forget to fix all these nasty little things *before* you remove general restrictions. The best for a proposal would be to create a list containing all questionable properties (or attributes) and to provide what has to be written for each of them to avoid a situation with ambiguous behaviour for one of them. > >> Are there any properties for which you would want to specifically > >> prohibit animation? If so, why? If not, maybe the animatable entry in > >> the property tables should just be removed. > > > > If we have a look into SVG tiny 1.2 property table, we find only > > 'direction' and 'unicode-bidi' to be indicated as not animatable. > > It is not explained, why they are not animatable, but one can > > guess, that this happened to protect author from doing things, > > that can confuse the audience on a very basic level of understanding > > the document purpose itself. > > There's no way to prevent an author from confusing their audience if that's > what they want to do. I see no good reason to animate these properties, but > equally I see no good reason to explicitly prohibit them from being > animated. > > > In SVG 1.1 we have others: > > 'writing-mode', 'glyph-orientation-vertical', > > 'glyph-orientation-horizontal', 'enable-background'. > > You can change these with script, so I see no good reason to actively > *prohibit* changing them with SMIL. > Personally I'm not against removing such restrictions, because in most cases I cannot see important reasons either. The same applies for example fot the matrix type of transform - not obvious for me, why this is not animatable ;o) The related CSS property is animatable (but the behaviour is unfortunately a little bit opaque hidden in a C-source code, maybe with some missing procedures - and from my point of view the SMIL approach of animating it would be quite different). Maybe Chris Lilley has still in mind, why those properties and some attributes were indicated to be not animatable. He or someone else from the 'old times' is hopefully able to explain, what the intention is or was. For me it is no big difference, I just have to add 10 to 100 more tests to my animation test suite - no big deal ;o) And in doubt, then I will find out, if there is something forgotten or ambiguous in the behaviour. I think, except for something like the matrix type of transform they should be typically non additive and discrete, therefore almost simple. But glyph-orientation-* 'angle' - additive or not? Discrete or not? It is defined, how to round, the value could be animated continuously as well. Needs to be clarified however before one can remove the restriction. > >> I'm saying that with the current CSS proposals for transitions and > >> animations you can animate more properties than you can with SMIL > >> animation. Why would we (or anyone) want that to be the case? > > > > I read and commented these proposals already and this is anyway not much > > related to SMIL animation. It uses a completely different approach and > > should not be mixed with the more advanced and more complex SMIL > > approach. > > I never proposed mixing. > > > It has some advantages in its simplicity and especially the transition > > proposal provides an interesting functionality, one does not have with > > SMIL at all or not in a simple way. > > > > And looking in the current CSS transition draft indeed the opposite is > > true, there are only a few properties indicated to be animatable, > > I only looked in CSS animations for restrictions and saw none - I > erroneously assumed that the same was true of transitions. Anyway, my point > is that I don't see any need to restrict what SMIL can animate relative to > *either* of these CSS proposals. > This could be an issue for the CSS animation proposal es well. http://www.w3.org/TR/2009/WD-css3-animations-20090320/ In 1 it notes: 'This specification is an extension to CSS Transitions' and in 3: 'Animations are similar to transitions in that they change the presentational value of CSS properties over time. The principal difference is that while transitions trigger implicitly when property values change, animations are explicitly executed when the animation properties are applied.' My interpretation was - if there is no other principal difference - that the transition proposal defines as well, what is animatable, especially it http://www.w3.org/TR/2009/WD-css3-transitions-20090320/ interestingly notes in 5 'Animatable properties' and not 'Transitionable properties'. Maybe one has to ask the authors of the proposals to clarify, what this means ;o) However, one can animate discrete, but one cannot transition discrete. On the other hand, for discrete animation on needs a more precise time interval model as SMIL has, but not the CSS proposals. On has to define precisely such 'events' like :hover, :active and :focus as well to compare to SMIL concerning a proper timing, else authors have to use SMIL anyway to get something predictable ;o) Olaf |
|
|
Re: Changing attributeType="CSS"On 31/10/2009, at 11:22 PM, Jonathan Watt wrote: >> And looking in the current CSS transition draft indeed the opposite >> is true, >> there are only a few properties indicated to be animatable, > > I only looked in CSS animations for restrictions and saw none - I > erroneously > assumed that the same was true of transitions. Anyway, my point is > that I don't > see any need to restrict what SMIL can animate relative to *either* > of these CSS > proposals. I recently updated the CSS transitions specification to simply refer to SVG for the list of animatable properties. It was never the intention to produce a restricted set. Dean |
|
|
Re: Changing attributeType="CSS"On Fri, 30 Oct 2009 21:56:03 +0100, Robert O'Callahan
<robert@...> wrote: > On Sat, Oct 31, 2009 at 9:41 AM, Chris Lilley <chris@...> wrote: > >> On Friday, October 30, 2009, 8:56:18 PM, Robert wrote: >> >> ROC> For legacy compatibility reasons, we can't do this for >> ROC> specifiedType="auto". >> >> Could you explain what legacy compatibility reasons mean that you can't >> do >> this? > > > It means that anyone who's using <animate attribute="height"> instantly > breaks, because it would animate the 'height' CSS property which does > nothing in SVG. How about making the 'height' attribute a presentation attribute for SVG.next? I think it's possible to stay backwards compatible while adding the option of specifying the width/height through CSS. Cheers /Erik -- Erik Dahlstrom, Core Technology Developer, Opera Software Co-Chair, W3C SVG Working Group Personal blog: http://my.opera.com/macdev_ed |
|
|
Re: Changing attributeType="CSS"Erik Dahlstrom:
> How about making the 'height' attribute a presentation attribute for > SVG.next? I think it's possible to stay backwards compatible while adding > the option of specifying the width/height through CSS. > > Cheers > /Erik Because width and height are not essential, but more a decorative question for an element in XHTML for example, it is a pretty good choice to have this as property. But for a rect element in SVG, width and height are the essential information about what kind of rectangle we have, this is not decoration or styling or presentation. Therefore I think, they should not be presentation attributes or properties like fill. It would be similar to say the d attribute of path should be only styling and decoration and the essential information is only, that we have a path - not important, what kind of path ;o) Of course, once started one has to continue the game: r of circle? rx, ry of ellipse or rect? points of polyline and polygon? x1,x2,y1,y2 of a line? - essential information or only presentation? ;o) Olaf |
| Free embeddable forum powered by Nabble | Forum Help |