| Index: LayoutTests/animations/interpolation/svg-r-interpolation.html
|
| diff --git a/LayoutTests/animations/interpolation/svg-r-interpolation.html b/LayoutTests/animations/interpolation/svg-r-interpolation.html
|
| index d87d3fd795fbb807d6f6b29e1424952a9859e8fe..668b6d9e748330c07655d7af83b202c500205751 100644
|
| --- a/LayoutTests/animations/interpolation/svg-r-interpolation.html
|
| +++ b/LayoutTests/animations/interpolation/svg-r-interpolation.html
|
| @@ -1,25 +1,82 @@
|
| <!DOCTYPE html>
|
| <meta charset="UTF-8">
|
| <style>
|
| +.container {
|
| + display: inline-block;
|
| +}
|
| +.parent {
|
| + r: 30px;
|
| +}
|
| .target {
|
| - stroke: black;
|
| - fill: white;
|
| - r: 5px;
|
| + fill: black;
|
| + r: 10px;
|
| }
|
| .expected {
|
| - stroke: green;
|
| + fill: green;
|
| }
|
| </style>
|
| <body>
|
| <template id="target-template">
|
| <svg width="70" height="70">
|
| - <circle cx="35" cy="35" r="20" class="target"/>
|
| + <circle cx="35" cy="35" r="10" class="target"/>
|
| </svg>
|
| </template>
|
| <script src="resources/interpolation-test.js"></script>
|
| <script>
|
| assertInterpolation({
|
| property: 'r',
|
| + from: '',
|
| + to: '20px',
|
| +}, [
|
| + {at: -0.3, is: '7px'},
|
| + {at: 0, is: '10px'},
|
| + {at: 0.3, is: '13px'},
|
| + {at: 0.6, is: '16px'},
|
| + {at: 1, is: '20px'},
|
| + {at: 1.5, is: '25px'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'r',
|
| + from: 'initial',
|
| + to: '20px',
|
| +}, [
|
| + {at: -0.3, is: '0px'},
|
| + {at: 0, is: '0px'},
|
| + {at: 0.3, is: '6px'},
|
| + {at: 0.6, is: '12px'},
|
| + {at: 1, is: '20px'},
|
| + {at: 1.5, is: '30px'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'r',
|
| + from: 'inherit',
|
| + to: '20px',
|
| +}, [
|
| + {at: -0.3, is: '33px'},
|
| + {at: 0, is: '30px'},
|
| + {at: 0.3, is: '27px'},
|
| + {at: 0.6, is: '24px'},
|
| + {at: 1, is: '20px'},
|
| + {at: 1.5, is: '15px'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'r',
|
| + from: 'unset',
|
| + to: '20px',
|
| +}, [
|
| + {at: -0.3, is: '0px'},
|
| + {at: 0, is: '0px'},
|
| + {at: 0.3, is: '6px'},
|
| + {at: 0.6, is: '12px'},
|
| + {at: 1, is: '20px'},
|
| + {at: 1.5, is: '30px'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'r',
|
| from: '0px',
|
| to: '20px'
|
| }, [
|
|
|