-
Notifications
You must be signed in to change notification settings - Fork 70
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
EyeDropper API #557
Comments
I'm curious about this too. Chrome has announced to ship this feature. Intent to Ship: EyeDropper API |
I think overall this seems reasonable. There's a bit of an open question with regards to how much UI is needed to get the user to reveal a color on their screen. Is an overlay enough (a la Fullscreen) or do we want to have the user explicitly confirm they want to share the color with the page? The former is probably more desirable for drawing applications, but might be problematic without something like cross-origin isolation as suggested in WICG/eyedropper-api#13 as it would make stealing cross-origin pixels easy-ish. It seems Chromium decided to ship this (it works on Canary at least) without such issues being resolved. Not sure if that was intentional? cc @mikewest |
thanks @annevk! There are some mitigations currently in place to prevent stealing cross-origin pixels. We are also going to monitor the use of this API in the wild for abuse to see if any follow-up mitigations are needed. |
@sefeng211 and I looked at the spec. Here are our concerns/questions so far:
|
Just to add a few use case examples (we make design tools in the browser)
Ideally you could specify the format. See this example from Figma's color picker. I last used HSL so it's showing me HSL codes. Right now Chrome always shows RGB. |
Request for Mozilla Position on an Emerging Web Specification
Other information
TAG review: w3ctag/design-reviews#587
Chrome Status entry: https://chromestatus.com/feature/6304275594477568
Thanks!
The text was updated successfully, but these errors were encountered: