Skip to content

Commit 52b3fae

Browse files
committed
Fix parent resolving for selector schema and real parents
When only one complex selector had a real parent reference we wrongly marked the whole selector list as chrooted. Fixes #3046
1 parent b10866c commit 52b3fae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/expand.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,9 +188,9 @@ namespace Sass {
188188
if (r->schema()) {
189189
SelectorListObj sel = eval(r->schema());
190190
r->selector(sel);
191-
bool chroot = sel->has_real_parent_ref();
192191
for (auto complex : sel->elements()) {
193-
complex->chroots(chroot);
192+
// ToDo: maybe we can get rid of chroots?
193+
complex->chroots(complex->has_real_parent_ref());
194194
}
195195

196196
}

0 commit comments

Comments
 (0)