Skip to content

Commit 5b922ef

Browse files
authored
Merge pull request #96 from suzyh/stroke-dashoffset
Add stroke-dashoffset handler
2 parents 38faa52 + a44a911 commit 5b922ef

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/dimension-handler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
'perspective',
160160
'right',
161161
'shape-margin',
162+
'stroke-dashoffset',
162163
'text-indent',
163164
'top',
164165
'vertical-align',

src/property-interpolation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
paddingRight: '0px',
8080
paddingTop: '0px',
8181
right: 'auto',
82+
strokeDashoffset: '0px',
8283
textIndent: '0px',
8384
textShadow: '0px 0px 0px transparent',
8485
top: 'auto',
@@ -124,4 +125,3 @@
124125
scope.propertyInterpolation = propertyInterpolation;
125126

126127
})(webAnimationsShared, webAnimations1, webAnimationsTesting);
127-

test/js/dimension-handler.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,8 @@ suite('dimension-handler', function() {
7171
assert.isUndefined(webAnimations1.consumeLengthOrPercent('(10px)'));
7272
assert.isUndefined(webAnimations1.consumeLengthOrPercent('calc(10px,10px)'));
7373
});
74+
test('interpolation of more specific properties', function() {
75+
assert.equal(webAnimations1.propertyInterpolation('strokeDashoffset', '10px', '50px')(0.25), '20px');
76+
assert.equal(webAnimations1.propertyInterpolation('textIndent', '10px', '50px')(0.25), '20px');
77+
});
7478
});

0 commit comments

Comments
 (0)