Investigate adding aliases for ::-webkit-slider-*
Categories
(Core :: CSS Parsing and Computation, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox117 | --- | fixed |
People
(Reporter: denschub, Assigned: emilio)
References
(Blocks 1 open bug, )
Details
(Keywords: dev-doc-needed)
Attachments
(1 file)
In a recent WebCompat issue, I stumbled across a minor visual glitch caused by a site styling an <input type="range">
with ::-webkit-slider-runnable-track
and ::webkit-slider-thumb
, but not it's -moz
-prefixed counterparts ::-moz-range-track
and ::-moz-range-thumb
.
I did not look into details, but it appears like the stylings could be fairly compatible to each other. That being said, this is lower on the priority-scale, as I don't recall frequent issues with this.
Reporter | ||
Updated•3 years ago
|
Assignee | ||
Comment 1•3 years ago
|
||
Do they really map one to one? We also have ::-moz-range-progress
.
Assignee | ||
Comment 2•3 years ago
|
||
I guess they do map 1:1, it's just that -progress
allows further customization
Reporter | ||
Comment 3•3 years ago
|
||
Some pseudo-elements do map, but others do not. I think saying that only aliasing some but not others will cause even more weirdness is fair, and given there is potential for an eventual spec resolution, this can also be a WONTFIX
for now.
In cases where things are broken, we can also craft interventions that would probably address most of the issues, so we don't have a hard-dependency on engine support here.
I didn't find an existing issue for that, so I figured it's worth filing a new one. I marked this as webcompat-priority P3 because I'm not aware of any significant breakage caused by range input styling. Even if this gets closed as WONTFIX, we can always come back if we discover something critically broken.
Assignee | ||
Comment 4•3 years ago
|
||
Assignee | ||
Comment 5•3 years ago
|
||
It'd be interesting if you can give the patch a shot and see if it fixes the compat bug you were seeing out of curiosity :)
Reporter | ||
Comment 6•3 years ago
|
||
Sorry, took me a bit longer to get back to this.
Your patch fixes the compat issue on powerapps.com, it just looks like Chrome with this. I have not tested any other site, but I'm happy to run some tests internally if you'd be interested in that!
Updated•2 years ago
|
Comment 7•1 year ago
|
||
There is a shopping site with an interesting "dual slider" for its price-range filter. It is broken because it disables pointer events on two overlaid sliders, and then enables pointer events on just their thumbs (https://github.com/webcompat/web-bugs/issues/123642). But since it only does the latter with ::-webkit-slider-thumb
and doesn't also have ::-moz-range-thumb
, the dual-slider ends up being completely non-interactable in Firefox. So not having aliases for at least the thumb is indeed causing webcompat site breakage, not just visual inconsistencies.
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Comment 8•1 year ago
|
||
We now have a second site affected by this (see comment 7), and this time it's breaking functionality. I've rebased the attached WIP-patch onto the current central, and was able to confirm that the patch still works and fixes the new issues as well.
Emilio, do you think it's feasible to ship the work-in-progress patch here, or would that require lots of work?
Assignee | ||
Comment 9•1 year ago
|
||
The patch works, but the question remains whether it breaks more stuff than it fixes, due to the pseudo tree being different.
Assignee | ||
Comment 10•1 year ago
|
||
We could maybe enable it on nightly for a while? If that seems fine I'm happy to write the patch.
Reporter | ||
Comment 11•1 year ago
|
||
Seems like a good approach. We'll keep an eye out for any breakage!
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 12•1 year ago
|
||
Comment 13•1 year ago
|
||
bugherder |
Comment 14•1 year ago
|
||
While it's a non-standard feature, those two pseudo-elements should still be added to the browser compat data, as ::-moz-range-thumb
and ::-moz-range-track
are. Note that they were put being the pref layout.css.webkit-range-pseudos.enabled
for now.
Sebastian
Comment 15•1 year ago
|
||
MDN docs changes can be tracked in the following GitHub issue: https://github.com/mdn/content/issues/28288
Description
•