Skip to content

Commit

Permalink
Do not log failed rule insertions in the speedy mode for -ms-expand
Browse files Browse the repository at this point in the history
… and `-ms-reveal` pseudo-elements (#2920)

* Add -ms-expand and -ms-reveal to ignored prefixes

* Add changeset

* Update .changeset/olive-ladybugs-fry.md

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
  • Loading branch information
pvdstel and Andarist committed Oct 12, 2022
1 parent 8a16374 commit 61c6696
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/olive-ladybugs-fry.md
@@ -0,0 +1,5 @@
---
'@emotion/sheet': patch
---

Do not log failed rule insertions in the speedy mode for even more vendor-prefixed pseudo-elements/classes like `:-ms-expand` and `:-ms-reveal`.
2 changes: 1 addition & 1 deletion packages/sheet/src/index.js
Expand Up @@ -147,7 +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){/.test(
!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(
rule
)
) {
Expand Down

0 comments on commit 61c6696

Please sign in to comment.