Skip to content
TypeScript

fix(web): isolate scrollbar styles from iframe owners (#32398)

Yash Singh83a3674ffd84
diff --git a/apps/web/src/index.css b/apps/web/src/index.css
index 3f3e1c742f4..e2942a5ece5 100644
--- a/apps/web/src/index.css
+++ b/apps/web/src/index.css
@@ -1847,21 +1847,21 @@ code {
-webkit-app-region: no-drag;
}
-/* Scrollbar styling */
-::-webkit-scrollbar {
+/* Keep parent scrollbar styles off iframe owners to avoid WebKit resize loops: https://webkit.org/b/324485 */
+:where(:not(iframe))::-webkit-scrollbar {
width: var(--app-scrollbar-width);
}
-::-webkit-scrollbar-track {
+:where(:not(iframe))::-webkit-scrollbar-track {
background: transparent;
}
-::-webkit-scrollbar-thumb {
+:where(:not(iframe))::-webkit-scrollbar-thumb {
background: var(--app-scrollbar-thumb);
border-radius: 3px;
}
-::-webkit-scrollbar-thumb:hover {
+:where(:not(iframe))::-webkit-scrollbar-thumb:hover {
background: var(--app-scrollbar-thumb-hover);
}