Case ce-0145-text-color-format-consistency · Scenario scenario-text-color-change

Text color format varies (hex, rgb, named colors)

OS: Windows 11 Device: Desktop or Laptop Any Browser: Chrome 120.0 Keyboard: US Status: draft
color text format consistency chrome

Phenomenon

When applying text colors in Chrome, the color format (hex, rgb, named colors) may vary inconsistently. The same color may be stored as #ff0000, rgb(255,0,0), or red depending on how it was applied.

Reproduction example

  1. Apply red color via color picker
  2. Apply red color via text input
  3. Apply red color via named color
  4. Observe the DOM color values

Observed behavior

  • Color format varies: #ff0000, rgb(255,0,0), red
  • Same color stored in different formats
  • Inconsistent color representation
  • Difficult to query or modify colors

Expected behavior

  • Color format should be consistent
  • Or format should be predictable
  • Same color should use same format
  • Format should be easy to work with

Browser Comparison

  • Chrome/Edge: Format varies (this case)
  • Firefox: Similar format inconsistency
  • Safari: Format handling varies

Notes and possible direction for workarounds

  • Normalize color format after application
  • Convert all colors to consistent format (e.g., hex)
  • Store original format if needed
  • Document color format behavior
After Color Picker
Text
Red color applied via color picker (hex format)
After Color Picker
Text
Red color applied via color picker (hex format)
vs
✅ Expected
Text
Expected: Same color uses consistent format (hex)

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-0120-text-color-persistence-chrome Windows 11 Desktop or Laptop Any Chrome 120.0 US draft
ce-0145-text-color-format-consistency 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.