File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1748,8 +1748,8 @@ namespace Sass {
1748
1748
result_str = unquote (Util::rtrim (result_str)) + " \n {" ;
1749
1749
Parser p = Parser::from_c_str (result_str.c_str (), ctx, s->pstate ());
1750
1750
p.last_media_block = s->media_block ();
1751
- Selector_List_Obj sl = p. parse_selector_list ( exp.block_stack .back ()->is_root () );
1752
- if (s-> has_parent_ref ()) sl-> remove_parent_selectors ( );
1751
+ bool root = exp.block_stack .back ()->is_root ();
1752
+ Selector_List_Obj sl = p. parse_selector_list (root );
1753
1753
return operator ()(&sl);
1754
1754
}
1755
1755
Original file line number Diff line number Diff line change @@ -636,7 +636,11 @@ namespace Sass {
636
636
// convert selector schema to a selector list
637
637
else if (Selector_Schema_Obj schema = SASS_MEMORY_CAST (Selector_Schema, s)) {
638
638
if (schema->has_real_parent_ref ()) {
639
+ // put root block on stack again (ignore parents)
640
+ // selector schema must not connect in eval!
641
+ block_stack.push_back (block_stack.at (1 ));
639
642
sl = eval (&schema);
643
+ block_stack.pop_back ();
640
644
} else {
641
645
selector_stack.push_back (0 );
642
646
sl = eval (&schema);
You can’t perform that action at this time.
0 commit comments