css-vendor icon indicating copy to clipboard operation
css-vendor copied to clipboard

Property clip-path

Open kof opened this issue 6 years ago • 2 comments

Reported here https://github.com/mui-org/material-ui/issues/9293#issuecomment-463036973

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.

https://codesandbox.io/s/o40xvvrq25

kof avatar Feb 13 '19 10:02 kof

Update those props have been put into a black list because they are inconsistent across engines https://github.com/cssinjs/css-vendor/blob/master/tests/fixtures.js#L73

Now we either need to find a way to vendor-prefix them correctly or document this behavior making them a user responsibility.

kof avatar Feb 13 '19 12:02 kof

Any updates on this? Thanks!

cibulka avatar Feb 27 '20 13:02 cibulka