File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ # 2.0.0 - 2017-05-08
2
+
3
+ - Rewritten with a jison parser for more accurate value parsing.
4
+ - Breaking: reduce-css-calc will now throw when trying to multiply or divide
5
+ by the same unit (e.g. ` calc(200px * 20px) ` ), and also when trying to divide
6
+ by zero.
7
+ - Added: Better handling of zero values (e.g. ` calc(100vw / 2 - 6px + 0px) `
8
+ becomes ` calc(100vw / 2 - 6px) ` ).
9
+ - Added: Better handling of mixed time values (e.g. ` calc(1s - 50ms) `
10
+ becomes ` 0.95s ` ).
11
+ - Added: Inner parentheses calculation to simplify complex expressions (e.g.
12
+ ` calc(14px + 6 * ((100vw - 320px) / 448)) ` becomes ` calc(9.71px + 1.34vw) `
13
+ with precision set to ` 2 ` ).
14
+ - Fixed: ` calc(1px + 1) ` does not evaluate to ` 2px ` .
15
+
16
+ ([ #22 ] ( https://github.com/MoOx/reduce-css-calc/pull/22 ) - @andyjansson )
17
+
1
18
# 1.3.0 - 2016-08-26
2
19
3
20
- Added: calc identifier from unresolved nested expressions are removed for
You can’t perform that action at this time.
0 commit comments