cuth / postcss-pxtorem

Convert pixel units to rem (root em) units using PostCSS
MIT License
2.03k stars 174 forks source link

Check if decl.parent.selector is not undefined #7

Closed mars-abd closed 8 years ago

mars-abd commented 9 years ago

I wrapped to checking blacklistedSelector call because I have error when I use: selector_black_list: ['.specials-rotator__nav-item’], and compile all styles in big project

cuth commented 9 years ago

Thanks, this is good. Is it possible to add a test so that we don't break this in the future?

mars-abd commented 9 years ago

I can't understand why this error throw, I have about thousand old css files in project and one or some of them trigger this error.

cuth commented 9 years ago

Can you post a link to a file that fails?

mars-abd commented 9 years ago

Sorry, I can't find this file easily. Later I will try to use gulp debug and find this stream. I will let you know as soon as I solve this problem.