Chromium Code Reviews| Index: LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/support/parsing-utils.js |
| diff --git a/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/support/parsing-utils.js b/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/support/parsing-utils.js |
| index beea4958ce8adf15ac3a446aea6bd96a361d48a7..6470e54018aa3b86ed7d311673abd467693a10e4 100644 |
| --- a/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/support/parsing-utils.js |
| +++ b/LayoutTests/imported/csswg-test/css-shapes-1/shape-outside/values/support/parsing-utils.js |
| @@ -367,7 +367,11 @@ function convertToPx(origValue) { |
| else { |
| convertedUnit = unit; |
| } |
| + if (number < 1000) { |
|
Erik Dahlström (inactive)
2015/05/05 08:34:12
indentation looks odd.
Can you explain why this
|
| number = Math.round(number * 1000) / 1000; |
| + } else { |
| + number = Math.round(number * 100) / 100; |
| + } |
| var find = valuesToConvert[i]; |
| var replace = number.toString() + convertedUnit; |
| retStr = retStr.replace(valuesToConvert[i], number.toString() + convertedUnit); |