Skip to content

Commit 1318ca8

Browse files
committed
Add -webkit-scrollbar pseudo-elements to ignored prefixes
1 parent b0014b4 commit 1318ca8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/lovely-drinks-sort.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@emotion/sheet': patch
3+
---
4+
5+
Do not log failed rule insertions in the speedy mode for even more vendor-prefixed pseudo-elements/classes like `-webkit-scrollbar-button`, `-webkit-scrollbar-thumb` and `-webkit-scrollbar-track`.

packages/sheet/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class StyleSheet {
147147
} catch (e) {
148148
if (
149149
process.env.NODE_ENV !== 'production' &&
150-
!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(
150+
!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal|-webkit-scrollbar-button:.*|-webkit-scrollbar-thumb:.*|-webkit-scrollbar-track:.*){/.test(
151151
rule
152152
)
153153
) {

0 commit comments

Comments
 (0)