| Index: LayoutTests/animations/interpolation/max-width-interpolation.html
|
| diff --git a/LayoutTests/animations/interpolation/max-width-interpolation.html b/LayoutTests/animations/interpolation/max-width-interpolation.html
|
| index 00866e051e41cae4fac8fa96d73d83856a4eaf65..18d1f7db5b750d0e882cb0e0f3696f80523e9f87 100644
|
| --- a/LayoutTests/animations/interpolation/max-width-interpolation.html
|
| +++ b/LayoutTests/animations/interpolation/max-width-interpolation.html
|
| @@ -1,14 +1,18 @@
|
| <!DOCTYPE html>
|
| <meta charset="UTF-8">
|
| <style>
|
| +.parent {
|
| + max-width: 100px;
|
| +}
|
| .target {
|
| - width: 100px;
|
| - height: 100px;
|
| + width: 200px;
|
| + height: 10px;
|
| background-color: black;
|
| - display: inline-block;
|
| + max-width: 10px;
|
| }
|
| .expected {
|
| background-color: green;
|
| + margin-bottom: 10px;
|
| }
|
| </style>
|
| <body>
|
| @@ -16,8 +20,47 @@
|
| <script>
|
| assertInterpolation({
|
| property: 'max-width',
|
| + 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-width',
|
| + from: 'initial',
|
| + to: '20px',
|
| +});
|
| +
|
| +assertInterpolation({
|
| + property: 'max-width',
|
| + from: 'inherit',
|
| + to: '20px',
|
| +}, [
|
| + {at: -0.5, is: '140px'},
|
| + {at: 0, is: '100px'},
|
| + {at: 0.3, is: '76px'},
|
| + {at: 0.6, is: '52px'},
|
| + {at: 1, is: '20px'},
|
| + {at: 1.5, is: '0px'},
|
| +]);
|
| +
|
| +assertNoInterpolation({
|
| + property: 'max-width',
|
| + from: 'unset',
|
| + to: '20px',
|
| +});
|
| +
|
| +
|
| +assertInterpolation({
|
| + property: 'max-width',
|
| from: '0px',
|
| - to: '100px'
|
| + to: '100px',
|
| }, [
|
| {at: -0.5, is: '0'}, // CSS max-width can't be negative.
|
| {at: 0, is: '0'},
|
|
|