Skip to content

Commit 1bec367

Browse files
committed
Prefer cloned root specifier inside media query
1 parent 9468846 commit 1bec367

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resolve-decl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function eachMapItemDependencyOfDecl(variablesUsedList, map, decl, cb) {
3939
// Splice on where the selector starts matching the selector inside at-rule
4040
// See: `test/fixtures/cascade-on-nested-rules.css`
4141
var varDeclAtRule = mapItem.parent.parent;
42-
mimicDecl = cloneSpliceParentOntoNodeWhen(decl, varDeclAtRule, function(ancestor) {
42+
mimicDecl = cloneSpliceParentOntoNodeWhen(mimicDecl || decl, varDeclAtRule, function(ancestor) {
4343
return ancestor === nodeToSpliceParentOnto;
4444
});
4545

0 commit comments

Comments
 (0)