|
@@ -114,7 +114,7 @@ this.RulesMatcher = this.RulesMatcher || (() => {
|
|
|
specificity.sheetIndex = sheetIndex;
|
|
specificity.sheetIndex = sheetIndex;
|
|
|
let ruleInfo = elementInfo.find(ruleInfo => ruleInfo.cssRule == cssRule);
|
|
let ruleInfo = elementInfo.find(ruleInfo => ruleInfo.cssRule == cssRule);
|
|
|
if (ruleInfo) {
|
|
if (ruleInfo) {
|
|
|
- if (!IGNORED_PSEUDO_CLASSES.find(pseudoClass => selectorText.find(pseudoClass)) && compareSpecificity(ruleInfo.specificity, specificity) == 1) {
|
|
|
|
|
|
|
+ if (!IGNORED_PSEUDO_CLASSES.find(pseudoClass => selectorText.includes(pseudoClass)) && compareSpecificity(ruleInfo.specificity, specificity) == 1) {
|
|
|
ruleInfo.specificity = specificity;
|
|
ruleInfo.specificity = specificity;
|
|
|
ruleInfo.selectorText = selectorText;
|
|
ruleInfo.selectorText = selectorText;
|
|
|
}
|
|
}
|