Closed Edgaras98 closed 6 months ago
I have a problem with older browsers, especially on Safari.
I write CSS syntax like this:
@media (width <= 768px) { width: 100%; }
I get compiled output as:
I would expect that to be compiled into:
@media (max-width: 768px) { width: 100%; }
This is my configuration in package.json:
"browserslist": [ "last 5 Chrome versions", "iOS >= 15.5", "last 2 Firefox versions", "last 1 ChromeAndroid versions", "Safari >= 15.5", "not dead" ],
I would expect that autoprefixer would compile into older syntax on versions that do not support newer ones.
you can even see this issue on: https://autoprefixer.github.io/
You need a polyfill (postcss-preset-env) not a Autoprefixer for that.
postcss-preset-env
More details https://github.com/postcss/autoprefixer#does-it-add-polyfills
I have a problem with older browsers, especially on Safari.
I write CSS syntax like this:
I get compiled output as:
I would expect that to be compiled into:
This is my configuration in package.json:
I would expect that autoprefixer would compile into older syntax on versions that do not support newer ones.
you can even see this issue on: https://autoprefixer.github.io/