|
|
@@ -246,9 +246,9 @@ this.matchedRules = this.matchedRules || (() => {
|
|
|
});
|
|
|
} else {
|
|
|
selectorInfo.ruleInfo.cssRule.block.children.forEach(declaration => {
|
|
|
- const styleValue = cssTree.generate(declaration);
|
|
|
+ const styleValue = cssTree.generate(declaration.value);
|
|
|
const elementStyleInfo = elementStylesInfo.get(declaration.property);
|
|
|
- if (!elementStyleInfo || (declaration.important && !elementStyleInfo.important)) {
|
|
|
+ if (styleValue.trim() && (!elementStyleInfo || (declaration.important && !elementStyleInfo.important))) {
|
|
|
elementStylesInfo.set(declaration.property, { selectorInfo, styleValue, important: declaration.important });
|
|
|
}
|
|
|
});
|