Skip to content

Releases: postcss/autoprefixer

9.2 “Onyi est glavnaya krepost”

14 Oct 17:37
@ai ai
9.2.0
Compare
Choose a tag to compare

Coat of Arms of Omsk

Autoprefixer 9.2 brings many new improvements for -ms- prefixes for Grid Layout.

New Ways to Enable/Disable Grid Layout

In previous versions, you had needed to pass grid: true to enable prefixes for Grid Layout. But not all users have access to Autoprefixer options. CodePen, Create Reat App or Angular CLI doesn’t allow you to do it.

In Autoprefixer 9.2 @fanich37 added special control comments:

/* autoprefixer grid: on */
.grid {
    display: grid;
    grid-gap: 33px;
    grid-template:
        "head head  head" 1fr
        "nav  main  main" minmax(100px, 1fr)
        "nav  foot  foot" 2fr /
        1fr   100px 1fr;
}

.non-ie .grid {
    /* autoprefixer grid: off */
    …
}

Autoprefixer doesn’t support Grid properties and values with auto. In 9.2 it will ignore whole @supports content if it contains these Grid properties:

@supports (grid-auto-rows: 100px) {
    /* Autoprefixer will not show Grid warnings and will not add prefixes here */
}

Smarter grid-area

Autoprefixer supports grid-template even if it was not in IE Grid spec.

But in 9.2 @bogdan0083 really improve it according to @Dan503 idea. Now Autoprefixer supports even overriding grid-template.

/* autoprefixer grid: on */
.grid {
    display: grid;
    grid-template:
        "nav  main" minmax(100px, 1fr)
        "nav  foot" 2fr /
        100px 1fr;
}

.grid.no-menu {
    grid-template:
        "main" minmax(100px, 1fr)
        "foot" 2fr
}

Other Changes

9.1.5

04 Sep 10:53
@ai ai
9.1.5
Compare
Choose a tag to compare
  • Remove @babel/register from dependencies.

9.1.4

04 Sep 07:01
@ai ai
9.1.4
Compare
Choose a tag to compare
  • Use Babel 7.

9.1.3

22 Aug 08:09
@ai ai
9.1.3
Compare
Choose a tag to compare
  • Sort properties in autoprefixer --info alphabetically.
  • Fix old Firefox gradient prefix.

9.1.2

19 Aug 18:52
@ai ai
9.1.2
Compare
Choose a tag to compare
  • Fix autoprefixer --info in new Node.js.

9.1.1

13 Aug 02:44
@ai ai
9.1.1
Compare
Choose a tag to compare

9.1 “Equality before the law”

03 Aug 01:35
@ai ai
9.1.0
Compare
Choose a tag to compare

Coat of Arms of Canada

Autoprefixer 9.1 brings background-clip: text and fix span in IE Grid.

Background Clip

background-clip: text become to be the standard and got Edge support. So we added it to Autoprefixer:

.title {
  background: linear-gradient(yellow, red);
   -webkit-background-clip: text;
           background-clip: text;
}

Note, that Edge expect -webkit- prefix for this property.

Grid Layout Fix

@bogdan0083 fixed an issue when media-query override some grid-template.

9.0.2

30 Jul 19:45
@ai ai
9.0.2
Compare
Choose a tag to compare
  • Show warning on Grid area names conflict (by @bogdan0083).
  • Fix documentation (by @svewag).

9.0.1

21 Jul 18:22
@ai ai
9.0.1
Compare
Choose a tag to compare
  • Fix nested at-rules in Grid prefixes (by @ivandata)

9.0 “A Mari Usque Ad Mare”

16 Jul 22:10
@ai ai
9.0.0
Compare
Choose a tag to compare

Coat of Arms of Canada

Autoprefixer 9.0 brings Browserslist 4.0 and drops Node.js 4 support.

Breaking Changes

We removed Node.js 4 and Node.js 9 support since it doesn’t have security updates anymore.

We removed IE and “dead” browsers (without security updates) from Babel’s targets. Don't worry, Autoprefixer still generate IE-compatible code. These changes affect websites which run Autoprefixer on client-side like CodePen.

last 2 version
not dead
not Explorer 11
not ExplorerMobile 11
node 10
node 8
node 6

Autoprefixer Rails 9.0 dropped the RubyRacer and Sprockets 3 support.

Browserslist 4.0

Autoprefixer 9.0 uses Browserslist 4.0 to get your target browsers.

Now you use Browserslist to specify Node.js versions. Babel 7 will use Browserslist config as well.

Also, Browserslist 4.0 will warn you if you didn’t update Can I Use DB for last than 6 month.

PostCSS 7.0

Autoprefixer 9.0 uses PostCSS 7.0