cuth / postcss-pxtorem

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

selector_black_list - regex match, not a strict one. #21

Closed MaxYari closed 8 years ago

MaxYari commented 8 years ago

strings from selector_black_list are checked against selector itself using match for regex which produces not strict comparison. So in attemp to leave font-size declared on body unchanged, selector like .post_body will also be matched. I suppose it is worth mentioning in readme, that this values are, in fact, producing non-strict indexOf-like comparison, or changing to strict comparison in source?

cuth commented 8 years ago

I've explained the selectorBlackList matching better in the readme in this commit:

https://github.com/cuth/postcss-pxtorem/commit/a4ed727f75a6cde519fcdd6210a3db069cc62b9c