Transform for older versions of IE
See original GitHub issueBaffled as to why some prefixes for transform
aren’t being added. Not sure if ticket belongs in gulp-autoprefixer or here, but here goes:
My gulp task:
gulp.task("sass", function () {
gulp.src(["./public/styles/styles.scss", "./public/styles/qubase/qubase.scss"])
.pipe(sourcemaps.init())
.pipe(plumber())
.pipe(sassGlob())
.pipe(sass())
.pipe(autoprefixer({
browsers: ["last 50 versions", "ie >= 9"],
cascade: false
}))
.pipe(cssnano())
.pipe(rename({
suffix: ".min"
}))
.pipe(sourcemaps.write("../maps"))
.pipe(gulp.dest("./public/build"))
.pipe(livereload());
});
My scss:
...
&-center{
display: flex;
transform: translateX(-50%);
}
Output:
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
So flexbox is fine, but where’s the -ms-
and -moz-
prefixes for transform?
The thing that really stumps me is it works just fine in the demo: http://autoprefixer.github.io/
Any ideas?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
transform method (Internet Explorer) - Microsoft Learn
Modifies the transformation matrix of the current context. HTML Canvas 2D Context, Section 3 Internet Explorer 9. Syntax.
Read more >How to Reinstall an Older Version of Internet Explorer
Choose "Windows Internet Explorer 9" from the list. Click "Uninstall" from the toolbar, or right-click the update and select "Uninstall" from the context...
Read more >How to go back to an older version of internet explorer
32 bit operating system download link-http://www.mediafire.com/file/bxcwp286dlxaie4/windows6.1-KB976932-X86.rar64 bit operating system ...
Read more >Transforme scale for older browsers? - Stack Overflow
It depends on which version of IE you are suporting. There is the -ms- prefix for IE9. IE 10+ can perfectly run css3...
Read more >Stuck on an older version of Microsoft's IE? There's a mode for ...
Microsoft built a backward compatibility/emulation "mode" into IE 11 called Enterprise Mode, designed to eliminate the vast majority of these ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@clhenrick I think so
You have this issue because you ignore Autoprefixer install instructions and use
gulp-autoprefixer
andgulp-cssnano
instead ofgulp-postcss
withautoprefixer
andcssnano
plugins:gulp-postcss
thenautoprefixer
andcssnano
will use same AST and will work much faster.cssnano
has built-in Autoprefixer. In one PostCSS chaincssnano
could detect that you use own Autoprefixer. But in this casecssnano
didn’t see that you use other PostCSS ingulp-autoprefixer
.