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.
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1682439
Specification: https://drafts.csswg.org/css-color-5/#contrast-color
Standards Body: CSS Working Group
Platform coverage: All
Preference: layout.css.contrast-color.enabled
DevTools bug: n/a
Link to standards-positions discussion: n/a
Other browsers:
Blink: some work in https://issues.chromium.org/issues/40142548,
looks currently incomplete
WebKit: shipped (Safari 26)
web-platform-tests:
Existing tests:
https://wpt.fyi/results/css/css-color?label=master&label=experimental&aligned&q=contrast-color
Additional rendering test to be added alongside the Gecko
implementation in bug 1682439
- JK
--
You received this message because you are subscribed to the Google Groups
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/04fd6d33-0624-4140-883e-161513a306f3%40gmail.com.