-
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
CSS pseudo element: -webkit-scrollbar #89
Comments
Firefox Nightly is not affected( |
It looks like this bug has regressed, possibly due to the pseudoselector starting with a hyphen "-". I'm unable to to add a style to scrollbars. |
@david-tap Thanks for the feedback, I will fix this in the next dev build, so this will be fixed in next stable release. |
small evacuation #382 (comment)
naekranie.pl##*::-webkit-scrollbar:style(width:14px !important; height:14px !important; )
naekranie.pl##*::-webkit-scrollbar-track:style(background:#ffffff !important; #b0b0b1 !important;)
naekranie.pl##*::-webkit-scrollbar-thumb:style(background:#404040 !important; border-radius: 0 !important;)
naekranie.pl##*::-webkit-scrollbar-thumb:hover:style(background:#505050 !important; )
naekranie.pl##*::-webkit-scrollbar-thumb:active:style(background:#404040 !important; )
naekranie.pl##*::-webkit-scrollbar-button:style(border-style:solid !important; height:16px !important; width:16px !important; background-color: #ffffff !important; )
naekranie.pl##*::-webkit-scrollbar-button:single-button:vertical:decrement:style(border-width:0 7px 14px !important; border-color:transparent transparent #404040 !important; )
naekranie.pl##*::-webkit-scrollbar-button:single-button:vertical:decrement:hover:style(border-color:transparent transparent #505050 !important; )
naekranie.pl##*::-webkit-scrollbar-button:single-button:vertical:increment:style(border-width:14px 7px 0 !important; border-color:#404040 transparent transparent !important; )
naekranie.pl##*::-webkit-scrollbar-button:single-button:vertical:increment:hover:style(border-color:#505050 transparent transparent !important; )
naekranie.pl##*::-webkit-scrollbar-button:single-button:horizontal:decrement:style(border-width:7px 14px 7px 0 !important; border-color:transparent #404040 transparent transparent !important; )
naekranie.pl##*::-webkit-scrollbar-button:single-button:horizontal:decrement:hover:style(border-color:transparent #505050 transparent transparent !important; )
naekranie.pl##*::-webkit-scrollbar-button:single-button:horizontal:increment:style(border-width:7px 0 7px 14px !important; border-color:transparent transparent transparent #404040 !important; )
naekranie.pl##*::-webkit-scrollbar-button:horizontal:increment:hover:style(border-color:transparent transparent transparent #505050) but any combination with pseudo-class selector/element was fail:
If what I remember it was recommended to fix it in Stylus/Stylish (maybe in topic about why no support media queries |
This will have to be reported in a new issue, othewise it's guaranteed I will forget about this. |
Prerequisites
Description
After pinning a header to the top of the page, I also want to change the behavior of the pseudo element -webkit-scrollbar on a page and set the width to something other than 0px that the site CSS is using but I don't believe I can set it using the :style() filter.
This could be somewhat related to gorhill/uBlock#2448 where pseudo element ::before and ::after were added to uBO.
A specific URL where the issue occurs
https://www.bittrex.com/
Steps to Reproduce
bittrex.com##body .scroll-wrapper::-webkit-scrollbar:style(width: 30px !important;)
bittrex.com##body .scroll-wrapper:style(height: auto !important; top: 0 !important; overflow-x: hidden !important; overflow-y: scroll !important;)
bittrex.com##.navbar-fixed-top:style(position: absolute !important; border: none !important; top: 0 !important;)
Please note: With the filter
bittrex.com##body .scroll-wrapper:style(height: auto !important; top: 0 !important; overflow-x: hidden !important; overflow-y: scroll !important;)
that overflow-y being set to scroll just helps to illuminate the issue because when hovered a scrollbar will appear, but unhovered there will be no bar. If you remove the overflow-y from the rule above, no scroll bar will be visible on hover or no hover. (You should still be able to scroll using arrow keys or mousewheel in either case.)scroll-wrapper clearfix
DIV, thePseudo ::scrollbar element
at the bottom of the Inspectors Styles page is still being set as 0px in the DIVbody .scroll-wrapper::-webkit-scrollbar
by the website's CSSScreenshot of console with highlighted area from Step 4 is below:
Expected behavior:
The scrollbar would be visible after setting the pseudo element
-webkit-scrollbar
width to 30px with the cosmetic filterbittrex.com##body .scroll-wrapper::-webkit-scrollbar:style(width: 30px !important;)
Actual behavior:
The scrollbar is still 0px when the page is unhovered as declared by the page CSS
Your environment
Chrome test profile with default uBO filters & settings.
The text was updated successfully, but these errors were encountered: