TypeError: Cannot read property 'forEach' of undefined
quasiperfect opened this issue · 4 comments
quasiperfect commented
stereobooster commented
Caused by:
@-moz-document url-prefix() {
inputtype:radio],input[type=checkbox]{vertical-align:middle;
margin-top:-.3em
}
}
Which is parsed to
{ type: 'Raw',
loc: null,
value: 'inputtype:radio],input[type=checkbox]' }
Resolution: we need to handle invalid CSS, ideally output error with url and line
quasiperfect commented
@stereobooster thanks for your help. that would be great(handle invalid CSS)
harrygreen commented
This error actually found a ton of invalid crap in our production CSS!
I raised a PR that spits out the invalid CSS: #237
stereobooster commented
fixed in #237