7rulnik / postcss-flexibility

PostCSS plugin for Flexibility polyfill
MIT License
296 stars 14 forks source link

adds -js-display: flex; before flexbox prefixes #3

Closed m-e-h closed 8 years ago

m-e-h commented 8 years ago

Not sure if anyone else is getting this. I opened an issue with autoprefixer too https://github.com/postcss/autoprefixer/issues/608

7rulnik commented 8 years ago

@m-e-h now if you will use it after Autoprefixer you will get this:

Source:

a {
    display: -webkit-flex;
    display: -ms-flexbox;
    -js-display: flex;
    display: flex
}

Old bug:

a {
    -js-display: flex;
    display: -webkit-flex;
    -js-display: flex;
    display: -ms-flexbox;
    -js-display: flex;
    display: flex
}

Fixed:

a {
    display: -webkit-flex;
    display: -ms-flexbox;
    -js-display: flex;
    display: flex
}

Also I add info about this in Usage section 1.0.1 just released 🚀

m-e-h commented 8 years ago

Great! Thanks @7rulnik ! Looks like they've fixed it on autoprexer too. So it should work before or after.