Преглед на файлове

determine used style attributes when computing the cascade only when the media is "all"

Gildas преди 7 години
родител
ревизия
1f3f999b2f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lib/single-file/css-rules-matcher.js

+ 1 - 1
lib/single-file/css-rules-matcher.js

@@ -191,7 +191,7 @@ this.RulesMatcher = this.RulesMatcher || (() => {
 				if (!styleValue) {
 					ruleInfo.style.set(styleName, elementStyleInfo.styleValue);
 				}
-			} else {
+			} else if (mediaInfo == mediaAllInfo) {
 				const styleInfo = elementStyleInfo.selectorInfo.styleInfo;
 				const cssStyle = styleInfo.cssStyle;
 				const matchedStyleInfo = mediaAllInfo.matchedStyles.get(cssStyle);