Skip to content

6.1 “Bil-shaʿb wa lil-shaʿb”

Choose a tag to compare
@ai ai released this 05 Nov 20:17
· 1005 commits to main since this release

Emblem of Algeria

Autoprefixer 6.1 contains new transition logic, CSS-in-JS support, :read-only support and a few other fixes.

New Transition Support

Unfortunately, Safari ignores entire transition rule if it contains unknown properties. This issue became visible, when Safari removed prefixes for transition.

So Autoprefixer now generates more robust CSS and a { transition: filter 1s } will be compiled to:

a {
    -webkit-transition: -webkit-filter 1s;    /* UC and old Safari */
    transition: -webkit-filter 1s;            /* Safari */
    transition: filter 1s;                    /* Future version of Safari */
    transition: filter 1s, -webkit-filter 1s; /* Blink and other browsers */


With postcss-js, any PostCSS plugin can be used for React Inline Styles, Radium, Free Style or any other CSS-in-JS flavor. Unfortunately, the previous version of Autoprefixer had a issue that is now resolved.

let prefixer = postcssJs.sync([ autoprefixer ]);

    display: 'flex'
//=> {
//        display: ['-webkit-box',
//                  '-webkit-flex',
//                  '-ms-flexbox',
//                  'flex']
//   }

Other Changes

  • Add :read-only support.
  • Add support for appearance with any values.
  • Add loud /*! autoprefixer: off */ control comments support.
  • Convert rotateZ to rotate for -ms-transform.
  • Use postcss-value-parser to carefully work with gradients.
  • Remove -ms-transform-style and -o-transform-style that never existed.