Skip to content

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
@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