| Index: LayoutTests/animations/interpolation/background-size-interpolation.html
|
| diff --git a/LayoutTests/animations/interpolation/background-size-interpolation.html b/LayoutTests/animations/interpolation/background-size-interpolation.html
|
| index d7a9657cdfa34059a0eab8150996b9139231c497..e3ffdc03b095a7dece38f1ac1b438184356a853e 100644
|
| --- a/LayoutTests/animations/interpolation/background-size-interpolation.html
|
| +++ b/LayoutTests/animations/interpolation/background-size-interpolation.html
|
| @@ -1,6 +1,9 @@
|
| <!DOCTYPE html>
|
| <meta charset="UTF-8">
|
| <style>
|
| +.parent {
|
| + background-size: 100px 100px;
|
| +}
|
| .target {
|
| width: 80px;
|
| height: 100px;
|
| @@ -12,6 +15,7 @@
|
| url(../resources/blue-100.png),
|
| url(../resources/green-100.png);
|
| background-position: left top, right top, left bottom, right bottom;
|
| + background-size: 10px 10px;
|
| }
|
| .expected {
|
| margin-right: 10px;
|
| @@ -21,6 +25,52 @@
|
| <body>
|
| <script src="resources/interpolation-test.js"></script>
|
| <script>
|
| +// neutral
|
| +assertInterpolation({
|
| + property: 'background-size',
|
| + from: '',
|
| + to: '20px 20px, 0px 0px',
|
| +}, [
|
| + {at: -0.25, is: ' 7.5px 7.5px, 12.5px 12.5px, 7.5px 7.5px, 12.5px 12.5px'},
|
| + {at: 0, is: '10.0px 10.0px, 10.0px 10.0px, 10.0px 10.0px, 10.0px 10.0px'},
|
| + {at: 0.25, is: '12.5px 12.5px, 7.5px 7.5px, 12.5px 12.5px, 7.5px 7.5px'},
|
| + {at: 0.5, is: '15.0px 15.0px, 5.0px 5.0px, 15.0px 15.0px, 5.0px 5.0px'},
|
| + {at: 0.75, is: '17.5px 17.5px, 2.5px 2.5px, 17.5px 17.5px, 2.5px 2.5px'},
|
| + {at: 1, is: '20.0px 20.0px, 0.0px 0.0px, 20.0px 20.0px, 0.0px 0.0px'},
|
| + {at: 1.25, is: '22.5px 22.5px, 0.0px 0.0px, 22.5px 22.5px, 0.0px 0.0px'},
|
| +]);
|
| +
|
| +// initial
|
| +// TODO(alancutter): Fix transitions: https://crbug.com/513127
|
| +assertNoInterpolation({
|
| + property: 'background-size',
|
| + from: 'initial',
|
| + to: '20px 20px, 0px 0px',
|
| +});
|
| +
|
| +// inherit
|
| +assertInterpolation({
|
| + property: 'background-size',
|
| + from: 'inherit',
|
| + to: '20px 20px, 0px 0px',
|
| +}, [
|
| + {at: -0.25, is: '120px 120px, 125px 125px, 120px 120px, 125px 125px'},
|
| + {at: 0, is: '100px 100px, 100px 100px, 100px 100px, 100px 100px'},
|
| + {at: 0.25, is: ' 80px 80px, 75px 75px, 80px 80px, 75px 75px'},
|
| + {at: 0.5, is: ' 60px 60px, 50px 50px, 60px 60px, 50px 50px'},
|
| + {at: 0.75, is: ' 40px 40px, 25px 25px, 40px 40px, 25px 25px'},
|
| + {at: 1, is: ' 20px 20px, 0px 0px, 20px 20px, 0px 0px'},
|
| + {at: 1.25, is: ' 0px 0px, 0px 0px, 0px 0px, 0px 0px'},
|
| +]);
|
| +
|
| +// unset
|
| +// TODO(alancutter): Fix transitions: https://crbug.com/513127
|
| +assertNoInterpolation({
|
| + property: 'background-size',
|
| + from: 'unset',
|
| + to: '20px 20px, 0px 0px',
|
| +});
|
| +
|
| // Matched keywords in size value list.
|
| assertNoInterpolation({
|
| property: 'background-size',
|
|
|