Closed amir2mi closed 2 years ago
I was wondering if Autoprefixer would break the inset property to top bottom left right but it did not. Its browser support is still raw and it is better to convert inset.
inset
top
bottom
left
right
It is the use-case for centering elements with absolute position:
.box{ position: absolute; inset: 0; margin: auto; }
.box{ position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; }
Autoprefixer is not for polyfills it is only for prefixes.
For polyfills you should use postcss-preset-env.
postcss-preset-env
I was wondering if Autoprefixer would break the
inset
property totop
bottom
left
right
but it did not. Its browser support is still raw and it is better to convert inset.It is the use-case for centering elements with absolute position:
Shorthand:
Better be converted to: