postcss-merge-rules 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -170,8 +170,9 @@ function selectorMerger() {
|
|
|
170
170
|
// Merge when both selectors are exactly equal
|
|
171
171
|
// e.g. a { color: blue } a { font-weight: bold }
|
|
172
172
|
if (cache.selector === rule.selector) {
|
|
173
|
+
var toString = String(cache);
|
|
173
174
|
rule.eachInside(function (decl) {
|
|
174
|
-
if (~
|
|
175
|
+
if (~toString.indexOf(String(decl))) {
|
|
175
176
|
return decl.removeSelf();
|
|
176
177
|
}
|
|
177
178
|
decl.moveTo(cache);
|