Gildas 7 роки тому
батько
коміт
d04eec9fc3
1 змінених файлів з 2 додано та 2 видалено
  1. 2 2
      lib/single-file/rules-matcher.js

+ 2 - 2
lib/single-file/rules-matcher.js

@@ -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 });