Skip to content

Commit 9d8b9e5

Browse files
authored
Merge pull request #2524 from mgreter/bugfix/parent-connect-twice
Fix to connect parent selector only once
2 parents 9af16cb + 6791de2 commit 9d8b9e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/expand.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ namespace Sass {
141141
}
142142
}
143143

144+
// do not connect parent again
145+
sel->remove_parent_selectors();
144146
selector_stack.push_back(sel);
145147
Env env(environment());
146148
if (block_stack.back()->is_root()) {

0 commit comments

Comments
 (0)