G
G
GaserV2016-12-10 17:02:19
JavaScript
GaserV, 2016-12-10 17:02:19

Why does autoprefixer do partial android support?

Good afternoon! Faced a problem. Why does autoprefixer partially support flexbox under android? And in the first case it does not work with browsers, and in the second. Seems to ignore flex-wrap. This is probably the main problem.
Link: elinadesign.ru/synergy Output
css:

-ms-flex-wrap: wrap;
  flex-wrap: wrap;

gulp.task('autopr', () =>
    gulp.src('css/main.css')
        .pipe(autoprefixer({
        	browsers: ['last 2 version', 'ie 9', 'ios 6', 'android 4'],
            // browsers: ['last 2 version', 'last 3 ie versions', 'last 3 ios versions', 'last 5 android versions'],
            cascade: false
        }))
        .pipe(gulp.dest('dist'))
);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zooks, 2016-12-10
@zooks

Here is my working config:
iOS 6, IE9 IMHO are hopelessly outdated and do not need support.
Output code:

.test {
   -webkit-flex-wrap: wrap;
       -ms-flex-wrap: wrap;
           flex-wrap: wrap;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question