|
|
@@ -35,7 +35,7 @@ this.RulesMatcher = this.RulesMatcher || (() => {
|
|
|
if (styleElement.sheet) {
|
|
|
if (styleElement.media && styleElement.media != MEDIA_ALL) {
|
|
|
const mediaInfo = createMediaInfo(styleElement.media);
|
|
|
- this.mediaAllInfo.medias.set(styleElement.media, mediaInfo);
|
|
|
+ this.mediaAllInfo.medias.set(styleIndex + "-" + styleElement.media, mediaInfo);
|
|
|
getMatchedElementsRules(doc, styleElement.sheet.cssRules, mediaInfo, styleIndex, matchedElementsCache, unmatchedSelectorsCache);
|
|
|
} else {
|
|
|
getMatchedElementsRules(doc, styleElement.sheet.cssRules, this.mediaAllInfo, styleIndex, matchedElementsCache, unmatchedSelectorsCache);
|