-
Notifications
You must be signed in to change notification settings - Fork 185
imageFilter (support for the CSS filter attribute) #409
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m going to punt on this. I’m unsure about the name “colorFilter”. It’s unfortunate that we can’t use filter because it conflicts with the basic transform. We could, possibly, interpret the filter as CSS filter if it’s a valid CSS filter function string, similar to how we validate colors. But that’s a little fancy…
I think we should do this, but we should call it imageFilter instead of colorFilter. |
rebased as imageFilter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but you can add a tiny test too?
Co-authored-by: Mike Bostock <[email protected]>
Helps with dark mode (#408)