Skip to content

_scaffold.sass: remove old scrollbar selectors#892

Merged
pradyunsg merged 1 commit into
pradyunsg:mainfrom
haampie:patch-3
Aug 17, 2025
Merged

_scaffold.sass: remove old scrollbar selectors#892
pradyunsg merged 1 commit into
pradyunsg:mainfrom
haampie:patch-3

Conversation

@haampie

@haampie haampie commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

The ::-webkit-scrollbar selectors lead to 10k+ selector match attempts on browsers where they are redundant. Since these fallback rules were added 5 years ago, they are likely redundant by now.

The existing article[role=main] * performs much better and is all that's needed for modern browsers.

These scrollbar selectors lead to 10k+ selector match attempts on browsers where they are redundant. `article[role=main] *` performs much better and is all that's needed for modern browsers. The other rules were added 5 years ago, and are likely no longer needed.
@pradyunsg pradyunsg merged commit 426ea05 into pradyunsg:main Aug 17, 2025
2 checks passed
@haampie haampie deleted the patch-3 branch August 18, 2025 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants