-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Current behavior:
When using the '&::placeholder' selector on Chrome with the sheet in "speedy" mode (i.e. using the insertRule() API), Chrome throws errors that it can't insert the ::-moz-placeholder and ::-ms-input-placeholder rules.
Looks to also be an issue on Safari
To reproduce:
Enable "speedy" mode (or just build for production), and use a '&::placeholder' selector.
Reproduction in codesandbox: https://codesandbox.io/s/emotion-forked-d29s1?file=/index.js
Expected behavior:
It seems that Chrome is just not going to be happy with the auto-prefixing behavior when using the insertRule() API. May need to do some basic browser detection to not insert the ::-moz-placeholder and ::-ms-input-placeholder rules when on Chrome/Safari.
It's possible that this is an issue in other browsers as well.
Environment information:
@emotion/cssversion: 11.0.0- Chrome: 87
- Safari 13.1
