From e4d190b93ed345ffdc11e85fa596bcfa60781bf9 Mon Sep 17 00:00:00 2001 From: Filipe Araujo Date: Sun, 18 Sep 2016 21:21:28 -0400 Subject: [PATCH 1/2] adding stroke dash offset handler --- src/dimension-handler.js | 1 + src/property-interpolation.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dimension-handler.js b/src/dimension-handler.js index 78a13309..a423a0c3 100644 --- a/src/dimension-handler.js +++ b/src/dimension-handler.js @@ -159,6 +159,7 @@ 'perspective', 'right', 'shape-margin', + 'stroke-dashoffset', 'text-indent', 'top', 'vertical-align', diff --git a/src/property-interpolation.js b/src/property-interpolation.js index 40055079..3e863bdc 100644 --- a/src/property-interpolation.js +++ b/src/property-interpolation.js @@ -79,6 +79,7 @@ paddingRight: '0px', paddingTop: '0px', right: 'auto', + strokeDashoffset: '0px', textIndent: '0px', textShadow: '0px 0px 0px transparent', top: 'auto', @@ -124,4 +125,3 @@ scope.propertyInterpolation = propertyInterpolation; })(webAnimationsShared, webAnimations1, webAnimationsTesting); - From a44a911a9f5dfeedad43433cca890b00169a24f5 Mon Sep 17 00:00:00 2001 From: Suzy Howlett Date: Mon, 14 Nov 2016 17:11:21 +1100 Subject: [PATCH 2/2] Add property-specific interpolation test --- test/js/dimension-handler.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/js/dimension-handler.js b/test/js/dimension-handler.js index e34ae366..00ebeebe 100644 --- a/test/js/dimension-handler.js +++ b/test/js/dimension-handler.js @@ -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'); + assert.equal(webAnimations1.propertyInterpolation('textIndent', '10px', '50px')(0.25), '20px'); + }); });