Sliders thicker than chrome on https://robinhood.com/us/en/gold/
Categories
(Web Compatibility :: Site Reports, defect, P3)
Tracking
(Webcompat Score:1, Webcompat Priority:P3)
People
(Reporter: marcelohdez.inq, Unassigned)
References
(Depends on 1 open bug, )
Details
(Keywords: webcompat:platform-bug, webcompat:site-report)
User Story
platform:windows,mac,linux,android impact:minor-visual configuration:general affects:all branch:release user-impact-score:2
Attachments
(3 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0
Steps to reproduce:
Go to the website https://robinhood.com/us/en/gold/, see that in the "Let the numbers do the talking" box a bit below, scrollbars are too thick (even in troubleshoot mode). On chrome they look fine.
Specs:
Framework 13 AMD 7840u
Fedora Linux 41
GNOME 47 with 150% scaling
Actual results:
Scrollbars too thick
Expected results:
Scrollbars to be thin
Reporter | ||
Updated•1 month ago
|
Reporter | ||
Comment 1•1 month ago
|
||
oops meant sliders, not scrollbars
Comment 2•1 month ago
|
||
Tentatively moving to forms, although it might be a webcompat issue with CSS.
For the life of me, I can't figure out what's changing the aspect of the input range element. DevTools shows a CSS class assigned, removing it makes the slider thinner (still not similar to Chrome), but the rules seem irrelevant.
Updated•1 month ago
|
Reporter | ||
Comment 3•1 month ago
|
||
(In reply to Francesco Lodolo [:flod] from comment #2)
For the life of me, I can't figure out what's changing the aspect of the input range element. DevTools shows a CSS class assigned, removing it makes the slider thinner (still not similar to Chrome), but the rules seem irrelevant.
If i add a CSS rule for height e.g.: input { height: 2px !important; }
it looks more like Chrome, don't know if height is being changed somewhere?
Comment 4•28 days ago
•
|
||
(In reply to Francesco Lodolo [:flod] from comment #2)
DevTools shows a CSS class assigned, removing it makes the slider thinner (still not similar to Chrome), but the rules seem irrelevant.
Solving this mystery: that's just because there are multiple copies of the same rule. So if you untick the styles (e.g. the background
style) in one, then the declaration in the other copy of the rule gets applied instead (and the rendering doesn't change unless you untick all of them).
This is Robinhood depending on a -webkit
prefixed CSS here -- specifically ::-webkit-slider-runnable-track
(and also ::-webkit-slider-thumb {
though that one matters less here).
They're specifying a custom background for the input element, which draws as the background for the track (as a gradient that fills in the bright white color up to the thumb); and then they limit the height of that track using that -webkit prefixed pseudo-class, which Firefox doesn't recognize.
Mozilla's rough equivalents are -moz-range-track
and -moz-range-thumb
. Though based on some local testing, it seems we ignore those pseudo-elements when appearance:none
is applied (as it is here), so it's not quite a direct drop-in replacement.
Comment 5•28 days ago
|
||
Comment 6•28 days ago
|
||
There are also standardized ways of referring to these pseudo-elements, which Firefox has implemented, but hidden behind an about:config pref (layout.css.modern-range-pseudos.enabled
) from bug 1860666. (Looks like bug 1882253 tracks getting that pref enabled by default, eventually.)
Comment 7•28 days ago
|
||
Here's a version where I've added the moz-prefixed styles (and removed appearance:none
styling on the input so that they apply). In Firefox[1], this renders the same as testcase 1 does in Chromium.
Unfortunately it seems that removing appearance:none
causes Chromium to disregard the styling on the thumb, so Chromium doesn't render this testcase the same way that they render testcase 1.
[1] with layout.css.modern-range-pseudos.enabled
set to false, as it is by default
Comment 8•28 days ago
|
||
Let's morph this into a webcompat site-report, with bug 1950161 tracking the underlying behavior-difference between Firefox and other browsers.
Comment 9•27 days ago
|
||
On first glance this breakage doesn't seem to be related to tracking protection. Does this issue go away if ETP is turned off? Maybe you meant to move it to Site Reports
instead of Privacy: Site Reports
?
Comment 10•27 days ago
|
||
Yup, that's what I meant to do - thanks!
Updated•26 days ago
|
Updated•26 days ago
|
Updated•4 days ago
|
Description
•