Skip to content

Commit

Permalink
Add -webkit-scrollbar pseudo-elements to ignored prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
silaslenz committed Jan 17, 2024
1 parent b0014b4 commit 1318ca8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lovely-drinks-sort.md
Original file line number Diff line number Diff line change
@@ -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 `-webkit-scrollbar-button`, `-webkit-scrollbar-thumb` and `-webkit-scrollbar-track`.
2 changes: 1 addition & 1 deletion packages/sheet/src/index.js
Original file line number Diff line number Diff line change
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|-ms-expand|-ms-reveal){/.test(
!/:(-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(
rule
)
) {
Expand Down

0 comments on commit 1318ca8

Please sign in to comment.