question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Transform for older versions of IE

See original GitHub issue

Baffled 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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
aicommented, May 26, 2018

@clhenrick I think so

1reaction
aicommented, Aug 22, 2016

You have this issue because you ignore Autoprefixer install instructions and use gulp-autoprefixer and gulp-cssnano instead of gulp-postcss with autoprefixer and cssnano plugins:

  1. If you will gulp-postcss then autoprefixer and cssnano will use same AST and will work much faster.
  2. cssnano has built-in Autoprefixer. In one PostCSS chain cssnano could detect that you use own Autoprefixer. But in this case cssnano didn’t see that you use other PostCSS in gulp-autoprefixer.
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found