Intent to prototype & ship: CSS contrast-color() function
65 views
Skip to first unread message
Jonathan Kew
unread,
Oct 27, 2025, 5:36:02 AM (4 days ago) Oct 27
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dev-pl...@mozilla.org
As of Firefox 146, I intend to turn on support for the CSS
contrast-color() function on all platforms.
Summary: The contrast-color() CSS function picks a color that has
guaranteed contrast against a specified foreground or background color.
A typical use could be to ensure visibility of text over a background
color that varies depending on a user's chosen theme, without having to
explicitly specify an appropriate text color for every background option.