Add color-gamut media query value subfeatures
#28892
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This adds data on the individual values of the
color-gamutmedia 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
srgbare 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):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.