| Index: LayoutTests/animations/resources/animation-test-helpers.js
|
| diff --git a/LayoutTests/animations/resources/animation-test-helpers.js b/LayoutTests/animations/resources/animation-test-helpers.js
|
| index 0860ff939588b9ff43c632c11b7ed5233de549ed..d4645a06ffdf0a5f4e28d19a77f9593afe91b5c5 100644
|
| --- a/LayoutTests/animations/resources/animation-test-helpers.js
|
| +++ b/LayoutTests/animations/resources/animation-test-helpers.js
|
| @@ -384,8 +384,8 @@ function checkExpectedTransitionValue(expected, index)
|
| // arbitrarily pick shadow-x and shadow-y
|
| if (property == 'box-shadow' || property == 'text-shadow') {
|
| var text = computedStyle[i].cssText;
|
| - // Shadow cssText looks like "rgb(0, 0, 255) 0px -3px 10px 0px"
|
| - var shadowPositionRegExp = /\)\s*(-?\d+)px\s*(-?\d+)px/;
|
| + // Shadow cssText looks like "rgb(0, 0, 255) 0px -3px 10px 0px" and can be fractional.
|
| + var shadowPositionRegExp = /\)\s*(-?[\d.]+)px\s*(-?[\d.]+)px/;
|
| var match = shadowPositionRegExp.exec(text);
|
| var shadowXY = [parseInt(match[1]), parseInt(match[2])];
|
| values.push(shadowXY[0]);
|
|
|