Releases: postcss/autoprefixer
9.2 “Onyi est glavnaya krepost”
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
- Improve Grid warnings (by @Dan503 and @bogdan0083)
- Improve docs (by @JoshuaHall, @Drarok, @revelt, and @janczer).
9.1.5
9.1.4
9.1.3
9.1.2
9.1.1
- Retain
grid-gap
through@media
(by @bogdan0083). - Fix
grid-template
and@media
(by @bogdan0083). - Fix Grid areas searching error (by @@bogdan0083).
- Fix
span X
Grid prefix (by @@bogdan0083). - Fix docs (by @halfzebra).
9.1 “Equality before the law”
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
9.0.1
9.0 “A Mari Usque Ad Mare”
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