File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -797,6 +797,11 @@ namespace Sass {
797
797
Env* env = environment ();
798
798
if (!env->has (full_name)) {
799
799
if (!env->has (" *[f]" )) {
800
+ for (Argument* arg : args->elements ()) {
801
+ if (List* ls = dynamic_cast <List*>(arg->value ())) {
802
+ if (ls->size () == 0 ) error (" () isn't a valid CSS value." , c->pstate ());
803
+ }
804
+ }
800
805
args = static_cast <Arguments*>(args->perform (this ));
801
806
Function_Call* lit = SASS_MEMORY_NEW (ctx.mem , Function_Call,
802
807
c->pstate (),
Original file line number Diff line number Diff line change @@ -1971,7 +1971,7 @@ namespace Sass {
1971
1971
Wrapped_Selector* cpy_ws = SASS_MEMORY_NEW (ctx.mem , Wrapped_Selector, *ws);
1972
1972
CommaSequence_Selector* cpy_ws_sl = SASS_MEMORY_NEW (ctx.mem , CommaSequence_Selector, sl->pstate ());
1973
1973
// remove parent selectors from inner selector
1974
- if (ext_cs->first ()) {
1974
+ if (ext_cs->first () && ext_cs-> first ()-> head ()-> length () > 0 ) {
1975
1975
Wrapped_Selector* ext_ws = dynamic_cast <Wrapped_Selector*>(ext_cs->first ()->head ()->first ());
1976
1976
if (ext_ws/* && ext_cs->length() == 1*/ ) {
1977
1977
CommaSequence_Selector* ws_cs = dynamic_cast <CommaSequence_Selector*>(ext_ws->selector ());
You can’t perform that action at this time.
0 commit comments