| Index: LayoutTests/animations/interpolation/word-spacing-interpolation.html
|
| diff --git a/LayoutTests/animations/interpolation/word-spacing-interpolation.html b/LayoutTests/animations/interpolation/word-spacing-interpolation.html
|
| index 155a574aef08945b1f3dedee1122a35fee3d01be..cc09897edb64255313a095e8dfd558ff8f79a3f5 100644
|
| --- a/LayoutTests/animations/interpolation/word-spacing-interpolation.html
|
| +++ b/LayoutTests/animations/interpolation/word-spacing-interpolation.html
|
| @@ -1,19 +1,75 @@
|
| <!DOCTYPE html>
|
| <meta charset="UTF-8">
|
| <style>
|
| +.parent {
|
| + word-spacing: 30px;
|
| +}
|
| .target {
|
| - font: 100px sans-serif;
|
| + font: 10px sans-serif;
|
| + word-spacing: 10px;
|
| }
|
| .expected {
|
| color: green;
|
| }
|
| </style>
|
| <body>
|
| -<template id="target-template">The helipad</template>
|
| +<template id="target-template">A B C D</template>
|
| <script src="resources/interpolation-test.js"></script>
|
| <script>
|
| assertInterpolation({
|
| property: 'word-spacing',
|
| + 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: 'word-spacing',
|
| + from: 'initial',
|
| + to: '20px',
|
| +}, [
|
| + {at: -0.3, is: '-6px'},
|
| + {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: 'word-spacing',
|
| + 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: 'word-spacing',
|
| + from: 'unset',
|
| + 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: 'word-spacing',
|
| from: '-10px',
|
| to: '40px'
|
| }, [
|
|
|