7rulnik/postcss-flexibility

adds -js-display: flex; before flexbox prefixes

m-e-h opened this issue · 2 comments

m-e-h commented

Not sure if anyone else is getting this. I opened an issue with autoprefixer too postcss/autoprefixer#608

@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

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