-
Notifications
You must be signed in to change notification settings - Fork 3
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
Making Color API color spaces available in CSS #32
Comments
@tabatkins comment from #23 had an interesting idea: using
|
Perhaps we should have some kind of way to register a
ColorSpace
object and make it available to CSS.I imagine it may need a worker of some sort, to separate its scope from JS APIs we don't want CSS colors to depend on,
and have some kind of registration function that is only exposed in that worker space.
In terms of namespace, I think it's fine if it's the same as colors generated through
@color-profile
(color(--colorspace ...coords)
). E.g. we already have two ways to register custom properties (@property
andCSS.registerProperty()
), and that's fine. In fact, it could even be used to polyfill@color-profile
!Thoughts, @tabatkins ?
The text was updated successfully, but these errors were encountered: