| Index: LayoutTests/animations/interpolation/svg-lighting-color-interpolation.html
|
| diff --git a/LayoutTests/animations/interpolation/svg-lighting-color-interpolation.html b/LayoutTests/animations/interpolation/svg-lighting-color-interpolation.html
|
| index 437aa2bc090e32396ffc2af7c12eac9dc49d5383..ec946af76f2931a7cbcd200537774ce44909c7c3 100644
|
| --- a/LayoutTests/animations/interpolation/svg-lighting-color-interpolation.html
|
| +++ b/LayoutTests/animations/interpolation/svg-lighting-color-interpolation.html
|
| @@ -1,18 +1,23 @@
|
| <!DOCTYPE html>
|
| <meta charset="UTF-8">
|
| <style>
|
| -svg {
|
| - width: 100px;
|
| - height: 100px;
|
| +.container {
|
| + display: inline-block;
|
| }
|
| -svg rect {
|
| +.parent {
|
| + lighting-color: blue;
|
| +}
|
| +.target {
|
| + lighting-color: orange;
|
| +}
|
| +rect {
|
| fill: black;
|
| filter: url(#test);
|
| }
|
| </style>
|
| <body>
|
| <template id="target-template">
|
| - <svg>
|
| + <svg width="10" height="100">
|
| <defs>
|
| <filter id="test">
|
| <feSpecularLighting result="lightingOut" specularExponent="20" class="target">
|
| @@ -21,13 +26,69 @@ svg rect {
|
| <feComposite in="SourceGraphic" in2="lightingOut" operator="arithmetic" k1="0" k2="1" k3="1" k4="0">
|
| </filter>
|
| </defs>
|
| - <rect width="100" height="100"></rect>
|
| + <rect width="10" height="100"></rect>
|
| </svg>
|
| </template>
|
| <script src="resources/interpolation-test.js"></script>
|
| <script>
|
| assertInterpolation({
|
| property: 'lighting-color',
|
| + from: '',
|
| + to: 'green',
|
| +}, [
|
| + {at: -5, is: 'rgb(255, 255, 0)'},
|
| + {at: -0.4, is: 'rgb(255, 180, 0)'},
|
| + {at: 0, is: 'rgb(255, 165, 0)'},
|
| + {at: 0.2, is: 'rgb(204, 158, 0)'},
|
| + {at: 0.6, is: 'rgb(102, 143, 0)'},
|
| + {at: 1, is: 'rgb(0, 128, 0)'},
|
| + {at: 1.5, is: 'rgb(0, 110, 0)'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'lighting-color',
|
| + from: 'initial',
|
| + to: 'green',
|
| +}, [
|
| + {at: -5, is: 'rgb(255, 255, 255)'},
|
| + {at: -0.4, is: 'rgb(255, 255, 255)'},
|
| + {at: 0, is: 'rgb(255, 255, 255)'},
|
| + {at: 0.2, is: 'rgb(204, 230, 204)'},
|
| + {at: 0.6, is: 'rgb(102, 179, 102)'},
|
| + {at: 1, is: 'rgb(0, 128, 0)'},
|
| + {at: 1.5, is: 'rgb(0, 65, 0)'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'lighting-color',
|
| + from: 'inherit',
|
| + to: 'green',
|
| +}, [
|
| + {at: -5, is: 'rgb(0, 0, 255)'},
|
| + {at: -0.4, is: 'rgb(0, 0, 255)'},
|
| + {at: 0, is: 'rgb(0, 0, 255)'},
|
| + {at: 0.2, is: 'rgb(0, 26, 204)'},
|
| + {at: 0.6, is: 'rgb(0, 77, 102)'},
|
| + {at: 1, is: 'rgb(0, 128, 0)'},
|
| + {at: 1.5, is: 'rgb(0, 192, 0)'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'lighting-color',
|
| + from: 'unset',
|
| + to: 'green',
|
| +}, [
|
| + {at: -5, is: 'rgb(255, 255, 255)'},
|
| + {at: -0.4, is: 'rgb(255, 255, 255)'},
|
| + {at: 0, is: 'rgb(255, 255, 255)'},
|
| + {at: 0.2, is: 'rgb(204, 230, 204)'},
|
| + {at: 0.6, is: 'rgb(102, 179, 102)'},
|
| + {at: 1, is: 'rgb(0, 128, 0)'},
|
| + {at: 1.5, is: 'rgb(0, 65, 0)'},
|
| +]);
|
| +
|
| +assertInterpolation({
|
| + property: 'lighting-color',
|
| from: 'orange',
|
| to: 'blue'
|
| }, [
|
|
|