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

[css-color] profiled colors can be device-independent #6024

Closed
Artoria2e5 opened this issue Feb 20, 2021 · 1 comment
Closed

[css-color] profiled colors can be device-independent #6024

Artoria2e5 opened this issue Feb 20, 2021 · 1 comment

Comments

@Artoria2e5
Copy link

Artoria2e5 commented Feb 20, 2021

The current css-color-4, chapter 10 is titled "Profiled, Device-dependent Colors". This title seems to neglect the existence of ColorSpace profiles, which are used to specify a device-independent colorspace.

CIELAB is quite a lot better than doing stuff in RGB, but some of its flaws (blue hue, etc.) are quite well known. There is a point in using an alternate space in the blending defined in css-color-5, or to pick colors out of an alternate lch-style wheel in css-color-4 using color(). This change does not alter the data-model of color().

The specification should probably add an exhaustive list of the ICCv4 profile types (see http://www.color.org/specification/ICC1v43_2010-12.pdf#page=36). I am pretty sure that only the Input, Display, Output, and ColorSpace types are good candidates for specifying colors anyways. DeviceLink has no information about a colorspace the system itself uses; Abstract is just for... fun(?); and NamedColor certainly doesn't work with the pass-in-floating-point-number model.

@svgeesus svgeesus self-assigned this Feb 22, 2021
@svgeesus
Copy link
Contributor

svgeesus commented Feb 22, 2021

Thanks for your helpful comments.

The current css-color-4, chapter 10 is titled "Profiled, Device-dependent Colors". This title seems to neglect the existence of ColorSpace profiles, which are used to specify a device-independent colorspace.

Not to neglect them, but more to distinguish the from device-independent colorspaces (which is the previous section). This section is therefore about profiled RGB and CMYK (etc) colorspaces. I see your point though, if you equate "profiled" with "uses an ICC profile". As you point out, ICC profiles can be used to do a lot more than this.

CIELAB is quite a lot better than doing stuff in RGB,

Yes, which is why Lab and LCH are explicitly allowed for CSS in this specification

but some of its flaws (blue hue, etc.) are quite well known.

They are, yes. The choice of Lab is a conservative one, based on most current use in industry. There are other spaces which may well be better (where better depends on the task at hand - the metric needs to be specified and some are better on one metric but wore on others). Also, ICC v4 only accepts XYZ and Lab as a PCS so using a different device-independent colorspace implies additional work.

There is current discussion on adding spaces with better perceptual uniformity (Jzazbz, ICpCt, OKLab) although that might happen in a later level rather than level 4, which is seeing active implementation now.

The specification should probably add an exhaustive list of the ICCv4 profile types

Yes, that totally makes sense to add for 10.3. Specifying a color profile: the @color-profile at-rule. Thanks for the suggestion.

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

No branches or pull requests

2 participants