Closed
Bug 1448670
Opened 8 years ago
Closed 8 years ago
Consider unprefixing ::-moz-selection for web compat
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
DUPLICATE
of bug 509958
| Tracking | Status | |
|---|---|---|
| firefox61 | --- | affected |
People
(Reporter: fvsch, Unassigned)
References
Details
Attachments
(1 file)
While the spec (https://www.w3.org/TR/css-pseudo-4/#highlight-pseudos) is not finalized yet, many sites include ::selection styles which work for text color and background color in:
- IE9+
- Edge
- Chrome
- Safari
Firefox is the only holdout with support for a prefixed version only. While having it prefixed (or better, behind a flag) is the theoretical good approach, in practice it’s a web compat issue since ::selection is widely used on the Web, with two scenarios for Firefox:
1. ::-moz-selection is not included
2. ::-moz-selection is included but not updated, resulting in issues like hard to read or even *invisible* selections (Example: https://github.com/react-navigation/react-navigation.github.io/pull/41)
Would unprefixing ::-moz-selection as-is doable at all?
Cheers.
Comment 1•8 years ago
|
||
I suggested the same in bug 1427680. I'm happy to do it, though that is still waiting on input from dbaron.
Friendly reminder :)
| Reporter | ||
Comment 2•8 years ago
|
||
This screenshot shows a common issue with the lack of ::selection support: sites that use text-shadow for visual effects (in this case for mimicking text-decoration-skip-ink:auto) will remove the text-shadow on ::selection but often don't duplicate this style specifically for Firefox.
| Reporter | ||
Comment 3•8 years ago
|
||
Woops, looks like this is a duplicate of bug 509958.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•