| Index: LayoutTests/animations/interpolation/svg-stroke-miterlimit-interpolation.html
|
| diff --git a/LayoutTests/animations/interpolation/svg-stroke-miterlimit-interpolation.html b/LayoutTests/animations/interpolation/svg-stroke-miterlimit-interpolation.html
|
| index b08965bc0ef086af1c3b54183695da57365a23d8..3405ec627acbf7c072ca4f97d2cc1d6714cb6190 100644
|
| --- a/LayoutTests/animations/interpolation/svg-stroke-miterlimit-interpolation.html
|
| +++ b/LayoutTests/animations/interpolation/svg-stroke-miterlimit-interpolation.html
|
| @@ -1,15 +1,22 @@
|
| <!DOCTYPE html>
|
| <meta charset="UTF-8">
|
| <style>
|
| +.container {
|
| + display: inline-block;
|
| +}
|
| svg {
|
| width: 50px;
|
| height: 100px;
|
| }
|
| +.parent {
|
| + stroke-miterlimit: 1.3;
|
| +}
|
| .target {
|
| fill: white;
|
| stroke: black;
|
| stroke-width: 20px;
|
| stroke-linejoin: miter;
|
| + stroke-miterlimit: 1.5;
|
| }
|
| .expected {
|
| stroke: green;
|
| @@ -17,12 +24,64 @@ svg {
|
| </style>
|
| <body>
|
| <template id="target-template">
|
| -<svg><path d="M0,100 l25,-50 l25,50" />
|
| +<svg><path d="M0,100 l25,-50 l25,50" /></svg>
|
| </template>
|
| <script src="resources/interpolation-test.js"></script>
|
| <script>
|
| assertInterpolation({
|
| property: 'stroke-miterlimit',
|
| + from: '',
|
| + to: '2',
|
| +}, [
|
| + {at: -0.4, is: '1.3'},
|
| + {at: 0, is: '1.5'},
|
| + {at: 0.2, is: '1.6'},
|
| + {at: 0.6, is: '1.8'},
|
| + {at: 1, is: '2'},
|
| + {at: 1.5, is: '2.25'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'stroke-miterlimit',
|
| + from: 'initial',
|
| + to: '2',
|
| +}, [
|
| + {at: -0.4, is: '4.8'},
|
| + {at: 0, is: '4'},
|
| + {at: 0.2, is: '3.6'},
|
| + {at: 0.6, is: '2.8'},
|
| + {at: 1, is: '2'},
|
| + {at: 1.5, is: '1'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'stroke-miterlimit',
|
| + from: 'inherit',
|
| + to: '2',
|
| +}, [
|
| + {at: -0.4, is: '1.02'},
|
| + {at: 0, is: '1.3'},
|
| + {at: 0.2, is: '1.44'},
|
| + {at: 0.6, is: '1.72'},
|
| + {at: 1, is: '2'},
|
| + {at: 1.5, is: '2.35'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'stroke-miterlimit',
|
| + from: 'unset',
|
| + to: '2',
|
| +}, [
|
| + {at: -0.4, is: '1.02'},
|
| + {at: 0, is: '1.3'},
|
| + {at: 0.2, is: '1.44'},
|
| + {at: 0.6, is: '1.72'},
|
| + {at: 1, is: '2'},
|
| + {at: 1.5, is: '2.35'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'stroke-miterlimit',
|
| from: '1',
|
| to: '3',
|
| }, [
|
|
|