File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,13 @@ namespace Sass {
253
253
if (value) value = value->perform (&eval);
254
254
Block_Obj bb = ab ? operator ()(ab) : NULL ;
255
255
if (!bb) {
256
- if (!value || (value->is_invisible () && !d->is_important ())) return 0 ;
256
+ if (!value || (value->is_invisible () && !d->is_important ())) {
257
+ if (d->is_custom_property ()) {
258
+ error (" Custom property values may not be empty." , d->value ()->pstate (), traces);
259
+ } else {
260
+ return nullptr ;
261
+ }
262
+ }
257
263
}
258
264
Declaration* decl = SASS_MEMORY_NEW (Declaration,
259
265
d->pstate (),
Original file line number Diff line number Diff line change @@ -1859,7 +1859,7 @@ namespace Sass {
1859
1859
css_error (" Invalid CSS" , " after " , message);
1860
1860
}
1861
1861
1862
- if (schema->empty ()) return {} ;
1862
+ if (schema->empty ()) error ( " Custom property values may not be empty. " ) ;
1863
1863
return schema.detach ();
1864
1864
}
1865
1865
You can’t perform that action at this time.
0 commit comments