-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[::-webkit-scrollbar*] Add support for pseudo classes #1247
Comments
https://old.reddit.com/r/uBlockOrigin/comments/izk51s/inject_css/ someone tried repair YouTube with: *##html::-webkit-scrollbar:style(width:8px;height:8px;)
*##html::-webkit-scrollbar-corner:style(background:none;)
*##html::-webkit-scrollbar-thumb:style(background:#7D7D7D;)
*##html::-webkit-scrollbar-track:style(opacity:0;) |
I can trivially fix to support |
Is this still an issue? |
Still can't use |
Can I have a URL to test this? Also, I don't understand the purpose of |
|
To bring back the scrollbar which was hidden in uBlockOrigin/uAssets#9672 |
Ok, With 1.38.7b7, the foollowing filters are parsed as invalid:
With 1.38.7b8, they are parsed as valid and work to restore the scroll bars. |
They're still seen as invalid on 1.38.7b8 in my filters. |
Right, sorry I didn't realize a few local changes made the difference. |
According to |
Related issue: - uBlockOrigin/uBlock-issues#1247 (comment) Distinguish between selectors which can be querySelector-ed and/or used ni a stylesheet.
CSS pseudo classes for:
::-webkit-scrollbar*
Prerequisites
Description
Some sites use very simple version of
-webkit-scrollbar
without stylize::-webkit-scrollbar-button
so is invisible with used Chromium.AdGuard and Stylus can stylize this element (
-webkit-scrollbar-button
) with someting like:But uBO fail if we combine with pseudo classes:
:single-button
:horizontal
:vertical
:increment
:decrement
and:
A specific URL where the issue occurs
e.g:
Steps to Reproduce
-webkit-scrollbar
example.*
to your opened domainExpected behavior:
Consider add detect pseudo classes for
::-webkit-scrollbar*
"pseudo" elements as valid.document.querySelector
may no see elements:It seems to be just a idea forced in Chromium as a "visionary". This may be the reason for rejecting filters because of the zero practical need to reset/restylish elements on the pages from the Internet.
Actual behavior:
CSS filters
::-webkit-scrollbar*
marked as invalid due detect pseudo classes.Your environment
The text was updated successfully, but these errors were encountered: