Case ce-0121-background-color-selection-issue · Scenario scenario-background-color-change

Background color interferes with text selection visibility

OS: Windows 11 Device: Desktop or Laptop Any Browser: Chrome 120.0 Keyboard: US Status: draft
color background highlight selection chrome

Phenomenon

When applying a background color (highlighting) to text, the background color may interfere with text selection visibility. Selected text with background color may be hard to see.

Reproduction example

  1. Apply a background color to some text (e.g., yellow highlight)
  2. Select the highlighted text
  3. Observe selection visibility

Observed behavior

  • Selection highlight may be hard to see against background color
  • Or selection highlight may conflict with background color
  • Text selection is less visible
  • User experience is degraded

Expected behavior

  • Selection should be clearly visible
  • Background color and selection highlight should work together
  • Or selection highlight should override background color
  • Text should always be readable when selected

Browser Comparison

  • Chrome/Edge: Selection visibility may be affected (this case)
  • Firefox: Similar visibility issues
  • Safari: Selection behavior may differ

Notes and possible direction for workarounds

  • Adjust selection highlight color when background color is present
  • Use different selection style for highlighted text
  • Ensure sufficient contrast
  • Consider using outline instead of background for selection

Browser compatibility matrix

This matrix shows which browser and OS combinations have documented cases for this scenario. The current case is highlighted. Click on a cell to view other cases.

Current case
Confirmed
Draft
No case documented

All variants (detailed table)

Complete list of all cases for this scenario with full environment details.

Case OS Device Browser Keyboard Status
ce-0121-background-color-selection-issue Windows 11 Desktop or Laptop Any Chrome 120.0 US draft
ce-0146-background-color-persistence Windows 11 Desktop or Laptop Any Chrome 120.0 US draft
ce-0167-background-color-format-variation Windows 11 Desktop or Laptop Any Chrome 120.0 US draft

Playground for this case

Use the reported environment as a reference and record what happens in your environment while interacting with the editable area.

Reported environment
OS: Windows 11
Device: Desktop or Laptop Any
Browser: Chrome 120.0
Keyboard: US
Your environment
Sample HTML:
Event log
Use this log together with the case description when filing or updating an issue.
0 events
Interact with the editable area to see events here.

Comments & Discussion

Have questions, suggestions, or want to share your experience? Join the discussion below.