Closed TheHolyWaffle closed 6 years ago
@kof Would you be able to take a look at this one please?
@TheHolyWaffle The prefixes are only added when needed (based on features detection client side). We have already discussed this point in:
The only downside of this approach is that the prefixes need to be added for the server-side rendering: https://github.com/mui-org/material-ui/blob/b97dad65a4495fb68b9d864e11d25521cf9befce/pages/_document.js#L110-L112
Automatic prefixing when needed is not working as expected. I'm trying to use clip-path, which needs to be prefixed in Safari.
myStyle: { clipPath: 'polygon(0% 0%, 100% 0%, 100% 250px, 0% 100%)', }
When I view my page in Safari and inspect that code, there is no vendor prefix for clip-path. I'm using Material UI core v3.9.0 and JSS v9.8.7 with jss-preset-default.
@depiction Do you see that output for server-side rendering or client-side?
@depiction I confirm the problem, we miss the clipPath prefix on Safari: https://codesandbox.io/s/o40xvvrq25.
Could you open an issue on JSS side? cc @kof.
Opened an issue
Hi, Is the issue still exist? We are using version 4.0.2. thank you
When I make use of the built-in
withStyles
HOC I don't get the automatic vendor prefixing despite the following pieces of documentation claiming otherwise:withStyles
in order to gain the benefit of vendor prefixing.jss-preset-default
which includes thejss-vendor-prefixer
plugin.Expected Behavior
Vendor prefixes should be generated for certain style rules like
display: 'flex'
ortransform: 'translateX(100px)'
Current Behavior
No vendor prefixes are generated
Steps to Reproduce (for bugs)
https://codesandbox.io/s/985r6o933w
Test
.ExampleContainer-root-1
Your Environment