Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autoprefixing seems to not be working #57

Open
josub opened this issue Jun 24, 2020 · 2 comments
Open

Autoprefixing seems to not be working #57

josub opened this issue Jun 24, 2020 · 2 comments

Comments

@josub
Copy link

josub commented Jun 24, 2020

It seems like autoprefixing is not happening, for e.g. using display: flex like so

const useStyles = makeStyles(theme => ({
  appBar: {
    display: "flex",
  },

I'd expect to see the following when inspecting the CSS

display: -webkit-box; 
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex; 
display: flex;

but I still just get, so no vendor prefixing seems to have been added

display: flex;

The config is the below i.e. Im not using disableAutoprefixing. What am I missing, shouldnt it autoprefix occur with this config and use case?

{
      resolve: "gatsby-plugin-material-ui",
      options: {
        stylesProvider: {
          injectFirst: true,
        },
      },
    },
@oliviertassinari
Copy link
Contributor

Please note that the autoprefixing on the server side is eager (prefix it all) while lazy on the client side (feature detection).

@abohannon
Copy link

I have a similar concern. I don't see any evidence that autoprefixing is happening for SSR. And inspecting the code in different browsers doesn't show any differences in prefixes. Perhaps I'm overlooking something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants