Skip to content

Commit 83a3674

Browse files
authored
fix(web): isolate scrollbar styles from iframe owners (pingdotgg#32398)
1 parent 0f4a130 commit 83a3674

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎apps/web/src/index.css‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,21 +1847,21 @@ code {
18471847
-webkit-app-region: no-drag;
18481848
}
18491849

1850-
/* Scrollbar styling */
1851-
::-webkit-scrollbar {
1850+
/* Keep parent scrollbar styles off iframe owners to avoid WebKit resize loops: https://webkit.org/b/324485 */
1851+
:where(:not(iframe))::-webkit-scrollbar {
18521852
width: var(--app-scrollbar-width);
18531853
}
18541854

1855-
::-webkit-scrollbar-track {
1855+
:where(:not(iframe))::-webkit-scrollbar-track {
18561856
background: transparent;
18571857
}
18581858

1859-
::-webkit-scrollbar-thumb {
1859+
:where(:not(iframe))::-webkit-scrollbar-thumb {
18601860
background: var(--app-scrollbar-thumb);
18611861
border-radius: 3px;
18621862
}
18631863

1864-
::-webkit-scrollbar-thumb:hover {
1864+
:where(:not(iframe))::-webkit-scrollbar-thumb:hover {
18651865
background: var(--app-scrollbar-thumb-hover);
18661866
}
18671867

0 commit comments

Comments
 (0)