Material-ui: autoprefixer seems not to work with display: flex

Created on 20 Mar 2017  路  7Comments  路  Source: mui-org/material-ui

Problem description

display: flex doesn't work on Android 4.3 .

an autoprefixes should be add.

Link to minimally-working code that reproduces the issue

link :

https://www.webpackbin.com/bins/-KffWrmKRQu-hBw5c88g

The "Hello world" element has CSS :

flex: 1 1 0%;

But this doesn't work on android 4.3 which doesn't accept flex.

You must run it on Android 4.3 emulator.

Versions

  • Material-UI: 0.17.1
  • React: 0.15.4
  • Browser: android 4.3 & cordova
bug 馃悰

Most helpful comment

Most likely this week-end.

All 7 comments

We should look at how it perform with the upcoming release. We have upgraded the prefixing library with #6343.

ok I'll retest when 0.17.2 will be out. any idea when it will be ?

Most likely this week-end.

I am confused with usage of autoprefixer in material-ui, it seems that the master branch is using inline-style-prefixer and the @next branch is using jss-vendor-prefixer?

As in my project I'm heading to the @next branch and the requirement of cross browser support is needed, and I would like to make sure the proper way to enable the autoprefixer, especially the way of dynamic styling. From above conversation it seems we need to include styleManager in the project? What is the official way of doing this?

@geohuz That's a good question. The next branch is using the default jss preset, that comes with an auto-prefixer.
We use as few dynamic style as possible. If you depend on them, you can follow the same approach as the master branch by using inline-style-prefixer.

What is the official way of doing this?

We haven't documented it yet. But you can take a look at how it's done in the documentation

nothing on my end has changed with v0.17.3

I think it is urgent to take care of it as android v4.3 is pretty common and we cannot neglect it

That seems to be fine using the native browser of an Android 4.3 on the v1-beta branch:
capture d ecran 2017-07-28 a 23 21 22

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TimoRuetten picture TimoRuetten  路  3Comments

ryanflorence picture ryanflorence  路  3Comments

mb-copart picture mb-copart  路  3Comments

zabojad picture zabojad  路  3Comments

revskill10 picture revskill10  路  3Comments