Skip to content

Commit 90f14be

Browse files
committed
fix: resolve macOS rendering issue with #root css
1 parent 146a783 commit 90f14be

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/App.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@
4444
-moz-osx-font-smoothing: grayscale;
4545
}
4646

47+
#root {
48+
/* force WebKit to promote into its compositor and repaint reliably (fix macos issue) */
49+
-webkit-transform: translate3d(0, 0, 0);
50+
transform: translate3d(0, 0, 0);
51+
-webkit-backface-visibility: hidden;
52+
backface-visibility: hidden;
53+
}
54+
4755
/*
4856
* Set scrollbar-gutter to prevent sidebar-induced layout shift on Windows
4957
* https://github.com/saadeghi/daisyui/issues/2859#issuecomment-2383862183

0 commit comments

Comments
 (0)