|
|
@@ -140,7 +140,7 @@ this.RulesMatcher = this.RulesMatcher || (() => {
|
|
|
const stylesInfo = parseCss.parseAListOfDeclarations(cssStyle.cssText);
|
|
|
stylesInfo.forEach(styleInfo => {
|
|
|
const important = cssStyle.getPropertyPriority(styleInfo.name) == PRIORITY_IMPORTANT;
|
|
|
- const styleValue = cssStyle.getPropertyValue(styleInfo.name) + (important ? " !" + PRIORITY_IMPORTANT : "");
|
|
|
+ const styleValue = cssStyle.getPropertyValue(styleInfo.name) + (important ? "!" + PRIORITY_IMPORTANT : "");
|
|
|
elementStylesInfo.set(styleInfo.name, { styleValue, cssStyle: ruleInfo.cssStyle, important });
|
|
|
});
|
|
|
} else {
|
|
|
@@ -148,7 +148,7 @@ this.RulesMatcher = this.RulesMatcher || (() => {
|
|
|
const stylesInfo = parseCss.parseAListOfDeclarations(cssStyle.cssText);
|
|
|
stylesInfo.forEach(styleInfo => {
|
|
|
const important = cssStyle.getPropertyPriority(styleInfo.name) == PRIORITY_IMPORTANT;
|
|
|
- const styleValue = cssStyle.getPropertyValue(styleInfo.name) + (important ? " !" + PRIORITY_IMPORTANT : "");
|
|
|
+ const styleValue = cssStyle.getPropertyValue(styleInfo.name) + (important ? "!" + PRIORITY_IMPORTANT : "");
|
|
|
let elementStyleInfo = elementStylesInfo.get(styleInfo.name);
|
|
|
if (!elementStyleInfo || (important && !elementStyleInfo.important)) {
|
|
|
elementStylesInfo.set(styleInfo.name, { styleValue, cssRule: ruleInfo.cssRule, selectorText: ruleInfo.selectorText, selectorsText: ruleInfo.selectorsText, important });
|