Skip to content

Skip patching where scrollbar-width is unsupported - #5

Merged
temeddix merged 2 commits into
mainfrom
skip-without-scrollbar-width
Nov 5, 2026
Merged

temeddix merged 2 commits into
mainfrom
skip-without-scrollbar-width

Conversation

@temeddix

@temeddix temeddix commented Nov 5, 2026

Copy link
Copy Markdown
Member

On old WebKit, such as the system WKWebView on macOS Ventura (about Safari 16.6), this package left Lit components unstyled. In a plain WKWebView, 171 to 215 of 1040 shadow roots ended up without Lit's sheets; with the attachShadow patch neutralized, 0 were missing. The exact WebKit fault is unknown.

applyThinScrollbarsEverywhere() now returns early when CSS.supports("scrollbar-width", "thin") is false. WebKit added scrollbar-width in Safari 18.2, so the sheet has no effect below that and skipping loses nothing. The check stays inside the function so importing remains safe outside a browser.

Includes a regression test, a README note, and the bump to 0.2.1. vp check, vp test run and vp pack pass. Not yet run on real old WebKit.

🤖 Generated with Claude Code

@temeddix
temeddix merged commit 713863c into main Nov 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant