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

Remove ICC named color profiles #6095

Closed
svgeesus opened this issue Mar 11, 2021 · 5 comments
Closed

Remove ICC named color profiles #6095

svgeesus opened this issue Mar 11, 2021 · 5 comments
Labels
css-color-4 Current Work

Comments

@svgeesus
Copy link
Contributor

Currently, the color() function when used with a color profile accepts either numeric parameters or string parameters. The latter is for use with named color profiles. These are not well supported (It took me quite a while to find an actual live example for testing), are not allowed in PDF (for CSS to PDF generators) and, for the simple use case of expressing a palette of named colors, CSS Custom Properties aka CSS Variables are an easier and more CSS-like way to produce that palette.

So this is a proposal to remove them from the spec:

Instead I would add an example of using CSS Custom properties to specify a palette of colors.

@faceless2
Copy link

Great idea.

As I think I've mentioned elsewhere, if we have a named-color ICC profile, we can certainly pull the content out of it and turn it into something we could legitimately put into PDF. But like you, we had to do a proper hunt to find just a single example to test with.

Also as mentioned elsewhere, I think the current syntax is limiting in that it doesn't allow you to specify how much of this special color you want - I can specify a CMYK color with 50% cyan, but the syntax means I can't specify a color that's 50% "Pantone Reflex Blue". So I'm all for dropping this now, before anyone (else) implements it, to allow us to dream up a better solution.

@svgeesus
Copy link
Contributor Author

before anyone (else) implements it

Yes, sorry and thanks for your impressive efforts here.

the current syntax is limiting in that it doesn't allow you to specify how much of this special color you want - I can specify a CMYK color with 50% cyan, but the syntax means I can't specify a color that's 50% "Pantone Reflex Blue"

Part of that is getting into Separation / DeviceN color support but yes, if we have a way to colorimetrically specify a named color, then we also need a way to mix it with other colors (including white, to get a tint). I hope color-mix() can help there.

Without knowing things like the dot gain, screening pattern, etc we can't know what measured color 50% "Pantone Reflex Blue" corresponds to.

@Crissov
Copy link
Contributor

Crissov commented Mar 11, 2021

Just for the record, #817 was dismissed because what I sought there was (at least in theory) already possible with ICC profiles that specified named colors.

@svgeesus
Copy link
Contributor Author

Yeah, I know, in part.

Also because you can do it wth CSS Custom Properties, and because of licensing issues and severe under-specifying issues.

@tabatkins
Copy link
Member

I'm definitely also in support of this simply for the simplification in data model it implies for Typed OM. I'd be happy to work with it if there were good use-cases, but if there's not, let's toss it, please.

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

No branches or pull requests

4 participants