You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Webview scrollbars are seemingly unstyleable in Insiders #213045
bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitieswebviewWebview issues
They really don't look that similar (other than the colors are close) -- in the first the scrollbar has no corners (arrows) is much thinner, and what you can't tell in the screenshot is that it behaves just like other VS Code scrollbars in that it hides and fades based on hover/focus.
While in Insiders none of those style are taking affect -- it seems ::-webkit-scrollbar* properties don't seem to apply anymore.
So we seem to be stuck with almost standard platform scrollbars.
This is now broken in Stable -- Isidor Nikolic (@isidorn) can we get a fix or resolution on this, since this is a regression from existing webview behavior.
If this is a confirmed regression, it would help to know which change caused it. We maintain a node.js based CLI tool vscode-bisect that automatically downloads and runs previous VS Code insiders and asks for each build if the issue reproduces. It takes up to 8 steps to find exactly the build that caused the regression.
bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitieswebviewWebview issues
Activity
mjbvz commentedon May 20, 2024
Looks styled still based on the colors, just different rendering
eamodio commentedon May 20, 2024
They really don't look that similar (other than the colors are close) -- in the first the scrollbar has no corners (arrows) is much thinner, and what you can't tell in the screenshot is that it behaves just like other VS Code scrollbars in that it hides and fades based on hover/focus.
While in Insiders none of those style are taking affect -- it seems
::-webkit-scrollbar*properties don't seem to apply anymore.So we seem to be stuck with almost standard platform scrollbars.
tamuratak commentedon May 22, 2024
Version: 1.90.0-insider (Universal)
Commit: 81c89c4
Date: 2024-05-22T09:32:21.946Z
Electron: 29.3.1
ElectronBuildId: 9464424
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Darwin arm64 22.6.0
I see a similar issue.
A workaround is adding the following to
main.css:Adding
::-webkit-scrollbar*doesn't work.eamodio commentedon Jun 9, 2024
This is now broken in Stable -- Isidor Nikolic (@isidorn) can we get a fix or resolution on this, since this is a regression from existing webview behavior.
bpasero commentedon Jun 10, 2024
If this is a confirmed regression, it would help to know which change caused it. We maintain a node.js based CLI tool
vscode-bisectthat automatically downloads and runs previous VS Code insiders and asks for each build if the issue reproduces. It takes up to 8 steps to find exactly the build that caused the regression.Steps:
npx --yes @vscode/vscode-bisect@latestThanks!
jiang-zhong-xi commentedon Jun 26, 2024
same issue
boltex commentedon Jun 29, 2024
same issue.
Made it thinner with this:
But still not like before !
Fixes microsoft#213045 avoids triggering new chrome scrollbar behavior
eamodio commentedon Jul 5, 2024
So this is a behavior change in Chrome 121 -- if
scrollbar-colororscrollbar-widthare used then the::-webkit-scrollbar*props are ignored.And the webview's index.html sets
scrollbar-color.I've opened #220121 to address this, but in the meantime, extensions can work around this by adding the following to their webview css:
Fixed find panel scroll bar and html layout along with scrolling only…
Chuxel commentedon Aug 22, 2024
JFYI - I see the same problem in stable now.
Version: 1.92.2 (user setup)
Commit: fee1edb
Date: 2024-08-14T17:29:30.058Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631
I lucked into setting
style="scrollbar-color: unset"on thehtmlelement to resolve it.