Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add color-gamut and any-pointer support #21

Open
Finesse opened this issue Jan 4, 2021 · 0 comments
Open

Add color-gamut and any-pointer support #21

Finesse opened this issue Jan 4, 2021 · 0 comments

Comments

@Finesse
Copy link

Finesse commented Jan 4, 2021

In contrast to other media features, color-gamut and any-pointer can match multiple values at the same time. For example, if the user display supports DCI-P3, the following expressions will match:

  • (color-gamut: p3)
  • (color-gamut: srgb) (because DCI-P3 includes sRGB, so if a monitor supports DCI-P3, it does support sRGB)

And the following won't:

  • (color-gamut: rec2020)

In order to support this feature, the match function shall either take multiple values for a mocked property or have a built-in knowledge about these features (not applicable to any-pointer).

It will be handy if the library supports arbitrary media features. It will make it future proof (allow to use with forthcoming media features without updating).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant