Skip to content

Commit e2386bc

Browse files
committed
Support mix for prefixes (CRAZY STUFF)
1 parent c741ed1 commit e2386bc

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 1.1.1 - 2014-08-06
2+
3+
* Fix issue when using mutiples differents prefixes in the same function
4+
15
# 1.1.0 - 2014-08-06
26

37
* support more complex formulas

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
],
2222
"dependencies": {
2323
"balanced-match": "~0.1.0",
24-
"reduce-function-call": "^1.0.0"
24+
"reduce-function-call": "^1.0.1"
2525
},
2626
"devDependencies": {
2727
"jscs": "^1.5.9",

test/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ test("reduce prefixed css calc()", function(t) {
6666

6767
t.equal(reduceCSSCalc("-moz-calc(100px / 2)"), "50px", "-moz, complete reduce")
6868
t.equal(reduceCSSCalc("-moz-calc(50% - 2em)"), "-moz-calc(50% - 2em)","-moz, multiple unit")
69+
70+
t.equal(reduceCSSCalc("-webkit-calc(calc(-moz-calc(1rem * 0.75) * 1.5) - 1px)"), "-webkit-calc(1.125rem - 1px)", "complex prefixed formula")
71+
6972
t.end()
7073
})
7174

0 commit comments

Comments
 (0)