color-js / elements

WIP
12 stars 1 forks source link

[color-swatch] Regression: Gamut badge seems to be using its defaults, instead of the values passed by `<color-swatch>` #79

Closed LeaVerou closed 3 months ago

DmitrySharabin commented 3 months ago

Do you have an example of how this happens? I looked through the examples we have, and they seem fine. I can't see anything weird—I checked gamuts and color.

<color-swatch> has gamuts equal to "srgb, p3, rec2020: P3+, prophoto: PP", <gamut-badge>srgb, p3, rec2020, prophoto. They are the same, but some have labels.

What am I missing?

LeaVerou commented 3 months ago

Does this example look different on your end?

image
DmitrySharabin commented 3 months ago

Does this example look different on your end?

Nope. It looks the same.

Now I see what you mean—its label should be P3+, right?

Investigating...

LeaVerou commented 3 months ago

Yup!