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

Linux Gnome Chrome rgba instead of hexCode Eyedropper API #28

Open
LarsFlieger opened this issue Aug 16, 2022 · 2 comments
Open

Linux Gnome Chrome rgba instead of hexCode Eyedropper API #28

LarsFlieger opened this issue Aug 16, 2022 · 2 comments

Comments

@LarsFlieger
Copy link

Summary

When you are using the EyeDropper API to pick a color on Gnome Linux devices you will get back rgba(8, 103, 210, 0) instead of #0867d2. It's strange that the value also has 0% opacity.

This is the code I'm using:

async function startEyeDropper(): Promise<string | null> {
    const eyeDropper = new EyeDropper()
    try {
        const result = await eyeDropper.open()
        return result.sRGBHex // <- should return hex code
    } catch (e) {
        return null
    }
}

Current behavior

Gives back rgba string format rgba(8, 103, 210, 0).

Chrome 101.0.4951.64 (Official Build) (64-bit)
Ubuntu 20.04.4 LTS

Expected behavior

Should give back hex format (as name of property says) #0867d2

@inexorabletash
Copy link
Member

This sounds like an implementation issue, rather than a specification issue. Did you file an issue against Chromium?

@LarsFlieger
Copy link
Author

LarsFlieger commented Jul 3, 2024

When you are using the EyeDropper API to pick a color on Gnome Linux devices you will get back rgba(8, 103, 210, 0) instead of #0867d2. It's strange that the value also has 0% opacity.

UPDATE: I did: https://issues.chromium.org/issues/352218913

I'm not sure if with never chrome version it is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants