Skip to content

Conversation

@ddbeck
Copy link
Contributor

@ddbeck ddbeck commented Jan 22, 2026

Summary

This adds data on the individual values of the color-gamut media query.

Test results and supporting details

All browsers parse the media query and all its values; see the web platform tests for feature color-gamut.

However, Firefox does not support displays with a wider gamut (or, strictly speaking, it works only in sRGB and hands off color management to the OS), so the values other than srgb are always false. This does not mean the media query is unsupported (as suggested by #21422). This is the correct behavior given by the spec (emphasis added):

the approximate range of colors that are supported by the UA and output device

This might be slightly surprising if you have a P3 display connected. I've added notes to capture this nuance, similar to what I've done in #28868.

Related issues

Fixes #21422

This came up in resolving web-platform-dx/web-features#3227.

@github-actions github-actions bot added data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS size:m [PR only] 25-100 LoC changed labels Jan 22, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2026

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@ddbeck
Copy link
Contributor Author

ddbeck commented Jan 22, 2026

Shout out to @jamesnw for helping me understand what's going on here.

Co-authored-by: Claas Augner <495429+caugner@users.noreply.github.com>
@ddbeck ddbeck requested a review from caugner January 29, 2026 16:52
@github-actions github-actions bot added size:l [PR only] 101-1000 LoC changed and removed size:m [PR only] 25-100 LoC changed labels Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS size:l [PR only] 101-1000 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

css.at-rules.media.color-gamut - Is not supported by Firefox

2 participants