| Index: LayoutTests/animations/interpolation/svg-fill-opacity-interpolation.html
|
| diff --git a/LayoutTests/animations/interpolation/svg-fill-opacity-interpolation.html b/LayoutTests/animations/interpolation/svg-fill-opacity-interpolation.html
|
| index 3d3e2891ac7cc37c022760ae05adb860241e5e52..65a4739a7738188ef2cd225e6c48eb864ac9918d 100644
|
| --- a/LayoutTests/animations/interpolation/svg-fill-opacity-interpolation.html
|
| +++ b/LayoutTests/animations/interpolation/svg-fill-opacity-interpolation.html
|
| @@ -1,23 +1,82 @@
|
| <!DOCTYPE html>
|
| <meta charset="UTF-8">
|
| <style>
|
| +.container {
|
| + display: inline-block;
|
| +}
|
| +.parent {
|
| + fill-opacity: 0.8;
|
| +}
|
| .target {
|
| - width: 100px;
|
| - height: 100px;
|
| fill: black;
|
| + fill-opacity: 0.6;
|
| }
|
| .expected {
|
| - fill: green;
|
| + border-right: solid;
|
| }
|
| </style>
|
| <body>
|
| <template id="target-template">
|
| -<svg><rect x="0" y="0" width="100" height="100">
|
| + <svg width="10" height="100">
|
| + <rect x="0" y="0" width="10" height="100"></rect>
|
| + </svg>
|
| </template>
|
| <script src="resources/interpolation-test.js"></script>
|
| <script>
|
| assertInterpolation({
|
| property: 'fill-opacity',
|
| + from: '',
|
| + to: '0.4',
|
| +}, [
|
| + {at: -0.3, is: '0.66'},
|
| + {at: 0, is: '0.6'},
|
| + {at: 0.3, is: '0.54'},
|
| + {at: 0.6, is: '0.48'},
|
| + {at: 1, is: '0.4'},
|
| + {at: 1.5, is: '0.3'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'fill-opacity',
|
| + from: 'initial',
|
| + to: '0.4',
|
| +}, [
|
| + {at: -0.3, is: '1'},
|
| + {at: 0, is: '1'},
|
| + {at: 0.3, is: '0.82'},
|
| + {at: 0.6, is: '0.64'},
|
| + {at: 1, is: '0.4'},
|
| + {at: 1.5, is: '0.1'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'fill-opacity',
|
| + from: 'inherit',
|
| + to: '0.4',
|
| +}, [
|
| + {at: -0.3, is: '0.92'},
|
| + {at: 0, is: '0.8'},
|
| + {at: 0.3, is: '0.68'},
|
| + {at: 0.6, is: '0.56'},
|
| + {at: 1, is: '0.4'},
|
| + {at: 1.5, is: '0.2'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'fill-opacity',
|
| + from: 'unset',
|
| + to: '0.4',
|
| +}, [
|
| + {at: -0.3, is: '0.92'},
|
| + {at: 0, is: '0.8'},
|
| + {at: 0.3, is: '0.68'},
|
| + {at: 0.6, is: '0.56'},
|
| + {at: 1, is: '0.4'},
|
| + {at: 1.5, is: '0.2'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'fill-opacity',
|
| from: '0',
|
| to: '1'
|
| }, [
|
|
|