Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyframe animation 'offset' clashes with SVG 'offset' #638

Open
karip opened this issue Sep 3, 2014 · 0 comments
Open

Keyframe animation 'offset' clashes with SVG 'offset' #638

karip opened this issue Sep 3, 2014 · 0 comments

Comments

@karip
Copy link

karip commented Sep 3, 2014

Keyframe animation for a SVG gradient stop offset [1] can't be made, because there is a conflict in key names in the Animation object. Here’s how it would look like:

var player = document.timeline.play(new Animation(stopElement, 
    [ {offset: 0.5, offset: 0}, {offset: 0.3, offset: 1} ], 
    {duration: 6000}));

An issue related to this has been written in the Web Animation spec [2]:

The above algorithm gives special meaning to the property names 'offset',
’computedOffset', 'easing', and 'composite'. If a CSS property called
’offset' or 'composite' is ever introduced it will clash with the meaning here.

I believe the svg stop offset property already causes a clash.

[1] http://www.w3.org/TR/SVG/pservers.html#StopElementOffsetAttribute
[2] http://dev.w3.org/fxtf/web-animations/#processing-a-keyframe-object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant