nDmitry / grunt-autoprefixer

Parse CSS and add vendor-prefixed CSS properties using the Can I Use database. Based on Autoprefixer.
MIT License
794 stars 60 forks source link

main.css:undefined:undefined: Missed semicolon #82

Closed alundiak closed 9 years ago

alundiak commented 10 years ago

I have css file content:

@media -sass-debug-info{
 filename{
  font-family: file\:\/\/C\:\/Users\/alund\/WebstormProjects\/project\/app\/bower_components\/sass-bootstrap\/lib\/_normalize\.scss
 }
 line{
   font-family:\0000311
 }
}

This is for sure not valid code (and I have dozen of such lines), but after I ran "grunt autoprefixer" with this conf:

all: {
                options: {
                    browsers: ['last 2 versions'],
                    remove: false,
                    cascade: true
                },
                files: {
                    '.tmp/styles/main.css': ['.tmp/styles/main.css']
                }
            }

I have as a result this console error:

Warning: ...\.tmp\styles\main.css:undefined:undefined: Missed semicolon Use --force to continue.

I tried to debug autoprefixer.js and postcss.js but have no time to research more. When I have line like this:

font-family: file\:\/\/C\

I mean that I have only 2 colons (not 3 as above), autoprefixer runs successfully.

Do u think it's kinda of issue which is nice to have fixed? I think, it's kinda sign to improve validation/parser.

nDmitry commented 9 years ago

This is indeed not valid code, so...

Anyway, this is just a plugin for Grunt, I think you better open this issue on postcss/postcss if you want.