Skip to content

[css-color-4] CSS gamut mapping applies on actual values #10467

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

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

cdoublev
Copy link
Collaborator

This sentence in 13.2. CSS Gamut Mapping to an RGB Destination suggests that CSS gamut mapping is applied to get used values:

TESTS

Used values of color are not exposed to script, making this hard to test in an automated manner.

From my understanding, used values of color are exposed by getComputedStyle():

  • [...]
  • color
  • outline-color
  • A resolved value special case property like color defined in another specification

The resolved value is the used value.

I guess the resolved value should not depend on the display device (13.1. An Introduction to Gamut Mapping):

[...] if the destination is the display device (a screen, or a printer) then out of gamut values must be converted to an in-gamut color.

Therefore I think actual values was the expected term in the first sentence.

@cdoublev cdoublev added the css-color-4 Current Work label Jun 19, 2024
Copy link
Contributor

@svgeesus svgeesus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed

@svgeesus svgeesus merged commit 3bc983d into w3c:main Jun 19, 2024
1 check passed
@cdoublev cdoublev deleted the patch-1 branch June 20, 2024 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-color-4 Current Work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants