Open Bug 2058266 Opened 2 hours ago Updated 2 hours ago

Transparent selections disallowed since version 153

Categories

(DevTools :: Debugger, defect)

Firefox 153
defect

Tracking

(Not tracked)

People

(Reporter: marijnh, Unassigned)

Details

Editors such as CodeMirror, which draw their own selection but still want to set the DOM selection, will set a transparent selection background via the ::selection pseudo-selector.

Since version 153, Firefox appears to ignore such a selection. Both transparent and a color code with 0 alpha will leave the selection visible, with its default color.

If this is intentional, it doesn't seem very useful (using a tiny opacity does still work, and also leads to an almost-invisible selection). If it's a bug, it affects CodeMirror (the editor also used in devtools), and probably a lot of other websites and libraries.

The Bugbug bot thinks this bug should belong to the 'DevTools::Debugger' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Debugger
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.