diff --git a/.changeset/lovely-drinks-sort.md b/.changeset/lovely-drinks-sort.md new file mode 100644 index 000000000..292806d79 --- /dev/null +++ b/.changeset/lovely-drinks-sort.md @@ -0,0 +1,5 @@ +--- +'@emotion/sheet': patch +--- + +Do not log failed rule insertions in the speedy mode for vendor-prefixed (Webkit, Mozilla and Microsoft) pseudo-elements/classes diff --git a/packages/sheet/src/index.js b/packages/sheet/src/index.js index 4fa90fbb6..fdc505a3f 100644 --- a/packages/sheet/src/index.js +++ b/packages/sheet/src/index.js @@ -147,9 +147,7 @@ export class StyleSheet { } catch (e) { if ( process.env.NODE_ENV !== 'production' && - !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test( - rule - ) + !/:(-webkit-.*:.*|-moz-.*|-ms-.*){/.test(rule) ) { console.error( `There was a problem inserting the following rule: "${rule}"`,