postcss-merge-rules
Advanced tools
Comparing version 1.3.2 to 1.3.3
@@ -0,1 +1,7 @@ | ||
# 1.3.3 | ||
* Fixes an issue where the wildcard hack (`*zoom: 1`) was being propagated to | ||
other properties erroneously. | ||
* Better merging logic in some cases. | ||
# 1.3.2 | ||
@@ -2,0 +8,0 @@ |
12
index.js
@@ -103,3 +103,4 @@ 'use strict'; | ||
firstClone.eachDecl(moveDecl(function (decl) { | ||
decl.moveTo(recievingBlock); | ||
decl.removeSelf(); | ||
recievingBlock.append(decl); | ||
})); | ||
@@ -119,2 +120,5 @@ secondClone.eachDecl(moveDecl(function (decl) { | ||
}); | ||
if (!secondClone.parent) { | ||
return recievingBlock; | ||
} | ||
return secondClone; | ||
@@ -136,2 +140,8 @@ } else { | ||
} | ||
// Ensure that we don't deduplicate the same rule; this is sometimes | ||
// caused by a partial merge | ||
if (cache === rule) { | ||
cache = rule; | ||
return; | ||
} | ||
var cacheDecls = getDeclarations(cache); | ||
@@ -138,0 +148,0 @@ var ruleDecls = getDeclarations(rule); |
{ | ||
"name": "postcss-merge-rules", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Merge CSS rules with PostCSS.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11160
185