| Index: LayoutTests/animations/interpolation/top-interpolation.html
|
| diff --git a/LayoutTests/animations/interpolation/top-interpolation.html b/LayoutTests/animations/interpolation/top-interpolation.html
|
| index ebbc0bfcb81997a6cd455acb91b8a472c9f6ef63..80f1e41ae66ee60e50f54d7c6b42a9d15aeeeae3 100644
|
| --- a/LayoutTests/animations/interpolation/top-interpolation.html
|
| +++ b/LayoutTests/animations/interpolation/top-interpolation.html
|
| @@ -1,16 +1,21 @@
|
| <!DOCTYPE html>
|
| <meta charset="UTF-8">
|
| <style>
|
| +.parent {
|
| + top: 30px;
|
| + margin-bottom: 40px;
|
| +}
|
| .target {
|
| position: relative;
|
| - width: 100px;
|
| - height: 100px;
|
| + width: 10px;
|
| + height: 10px;
|
| background-color: black;
|
| display: inline-block;
|
| - margin: 20px 0px 20px 0px;
|
| + top: 10px;
|
| }
|
| .expected {
|
| background-color: green;
|
| + margin-right: 10px;
|
| }
|
| </style>
|
| <body>
|
| @@ -18,6 +23,42 @@
|
| <script>
|
| assertInterpolation({
|
| property: 'top',
|
| + from: '',
|
| + to: '20px',
|
| +}, [
|
| + {at: -0.3, is: '7px'},
|
| + {at: 0, is: '10px'},
|
| + {at: 0.5, is: '15px'},
|
| + {at: 1, is: '20px'},
|
| + {at: 1.5, is: '25px'},
|
| +]);
|
| +
|
| +assertNoInterpolation({
|
| + property: 'top',
|
| + from: 'initial',
|
| + to: '20px',
|
| +});
|
| +
|
| +assertInterpolation({
|
| + property: 'top',
|
| + from: 'inherit',
|
| + to: '20px',
|
| +}, [
|
| + {at: -0.3, is: '33px'},
|
| + {at: 0, is: '30px'},
|
| + {at: 0.5, is: '25px'},
|
| + {at: 1, is: '20px'},
|
| + {at: 1.5, is: '15px'},
|
| +]);
|
| +
|
| +assertNoInterpolation({
|
| + property: 'top',
|
| + from: 'unset',
|
| + to: '20px',
|
| +});
|
| +
|
| +assertInterpolation({
|
| + property: 'top',
|
| from: '-10px',
|
| to: '10px'
|
| }, [
|
|
|