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

Add stroke-dashoffset handler #96

Merged
merged 2 commits into from
Nov 22, 2016
Merged

Conversation

suzyh
Copy link
Contributor

@suzyh suzyh commented Nov 14, 2016

This pull request is a rebase of #85 onto the new development branch, and also adds a test. The patch fixes #84.

@@ -71,4 +71,8 @@ suite('dimension-handler', function() {
assert.isUndefined(webAnimations1.consumeLengthOrPercent('(10px)'));
assert.isUndefined(webAnimations1.consumeLengthOrPercent('calc(10px,10px)'));
});
test('interpolation of more specific properties', function() {
assert.equal(webAnimations1.propertyInterpolation('strokeDashoffset', '10px', '50px')(0.25), '20px');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be able to interpolate multi valued values e.g. '10px 20px' to '50px 60px'.
If it doesn't can you file an issue to add support for it? I won't block this patch on supporting that right away.

lgtm.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out stroke-dashoffset does not support multiple values; that's stroke-dasharray. Submitting as-is.

@alexjlockwood
Copy link

+1 for this :)

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

Successfully merging this pull request may close these issues.

Dashoffset not properly animating in ios 8.1
4 participants