| Index: LayoutTests/animations/interpolation/max-height-interpolation.html
|
| diff --git a/LayoutTests/animations/interpolation/max-height-interpolation.html b/LayoutTests/animations/interpolation/max-height-interpolation.html
|
| index f985368d0d217ca09d34987e27516d4e9a277473..99a5b5ec45084a0f8084a2d73d8ab76d4caa6c0c 100644
|
| --- a/LayoutTests/animations/interpolation/max-height-interpolation.html
|
| +++ b/LayoutTests/animations/interpolation/max-height-interpolation.html
|
| @@ -1,23 +1,70 @@
|
| <!DOCTYPE html>
|
| <meta charset="UTF-8">
|
| <style>
|
| +.parent {
|
| + max-height: 30px;
|
| +}
|
| .target {
|
| width: 100px;
|
| height: 100px;
|
| background-color: black;
|
| display: inline-block;
|
| + max-height: 10px;
|
| }
|
| .expected {
|
| background-color: green;
|
| }
|
| </style>
|
| <body>
|
| +<template id="target-template">
|
| + <div>
|
| + <div class="target"></div>
|
| + </div>
|
| +</template>
|
| <script src="resources/interpolation-test.js"></script>
|
| <script>
|
| assertInterpolation({
|
| property: 'max-height',
|
| + from: '',
|
| + to: '20px',
|
| +}, [
|
| + {at: -0.5, is: '5px'},
|
| + {at: 0, is: '10px'},
|
| + {at: 0.3, is: '13px'},
|
| + {at: 0.6, is: '16px'},
|
| + {at: 1, is: '20px'},
|
| + {at: 1.5, is: '25px'},
|
| +]);
|
| +
|
| +assertNoInterpolation({
|
| + property: 'max-height',
|
| + from: 'initial',
|
| + to: '20px',
|
| +});
|
| +
|
| +assertInterpolation({
|
| + property: 'max-height',
|
| + from: 'inherit',
|
| + to: '20px',
|
| +}, [
|
| + {at: -0.5, is: '35px'},
|
| + {at: 0, is: '30px'},
|
| + {at: 0.3, is: '27px'},
|
| + {at: 0.6, is: '24px'},
|
| + {at: 1, is: '20px'},
|
| + {at: 1.5, is: '15px'},
|
| +]);
|
| +
|
| +assertNoInterpolation({
|
| + property: 'max-height',
|
| + from: 'unset',
|
| + to: '20px',
|
| +});
|
| +
|
| +assertInterpolation({
|
| + property: 'max-height',
|
| from: '0px',
|
| - to: '100px'
|
| + to: '100px',
|
| }, [
|
| {at: -0.5, is: '0'}, // CSS max-height can't be negative.
|
| {at: 0, is: '0'},
|
|
|