postcss-merge-rules
Advanced tools
Comparing version 6.0.0 to 6.0.1
{ | ||
"name": "postcss-merge-rules", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Merge CSS rules with PostCSS.", | ||
@@ -5,0 +5,0 @@ "types": "types/index.d.ts", |
@@ -87,2 +87,5 @@ 'use strict'; | ||
} | ||
if (ruleA.some(isRuleOrAtRule) || ruleB.some(isRuleOrAtRule)) { | ||
return false; | ||
} | ||
return parent && (selectors.every(noVendor) || sameVendor(a, b)); | ||
@@ -93,2 +96,9 @@ } | ||
* @param {import('postcss').ChildNode} node | ||
* @return {boolean} | ||
*/ | ||
function isRuleOrAtRule(node) { | ||
return node.type === 'rule' || node.type === 'atrule'; | ||
} | ||
/** | ||
* @param {import('postcss').ChildNode} node | ||
* @return {node is import('postcss').Declaration} | ||
@@ -95,0 +105,0 @@ */ |
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
23659
694