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

Color Spaces: Track CSS debates about gamut-mapping #3476

Open
Tracked by #3593
mirisuzanne opened this issue Jan 11, 2023 · 3 comments
Open
Tracked by #3593

Color Spaces: Track CSS debates about gamut-mapping #3476

mirisuzanne opened this issue Jan 11, 2023 · 3 comments

Comments

@mirisuzanne
Copy link
Contributor

As I understand the primary issue: out-of-gamut canvas colors are currently clipped, so it could be a problem if CSS colors don't match canvas colors. But I don't see a clear resolution on that yet, or much discussion since August. We'll want to track the changes being made here, and make sure we're shipping something compatible with browsers. The two issues I was able to find in the CSSWG repo related to gamut mapping are:

@mirisuzanne mirisuzanne added blocked Waiting on another issue to be fixed proposal: color spaces labels Jan 11, 2023
@mirisuzanne mirisuzanne self-assigned this Jan 11, 2023
@mirisuzanne
Copy link
Contributor Author

It looks like CSS/browsers are punting on the specifics of gamut-mapping, by ensuring that it's not needed internally for color math - and will only be applied to used-values for display.

On our end, though - a gamut-mapping function would make it much easier for authors to handle legacy fallback behavior. I don't think we can punt on the details of that. That's useful even if it doesn't match a CSS function exactly - though it would be good if we can mach CSS in the future. Not sure what the right approach here is.

@mirisuzanne
Copy link
Contributor Author

  • add to-gamut to summary
  • add design decision note about not requiring algo at this point

@mirisuzanne mirisuzanne removed the blocked Waiting on another issue to be fixed label May 18, 2023
mirisuzanne added a commit to oddbird/sass that referenced this issue May 26, 2023
@svgeesus
Copy link

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