| Summary: | Colors with lightness of 0 or 100 with a chroma that pushes the color out of gamut are displayed as non-white / non-black | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | romain |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | heycam, ntim, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 17 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=261019 | ||
|
Description
romain
2023-09-15 06:34:11 PDT
Related to bug 261019 that was recently fixed, but still reproduces on ToT. I think this is a different issue. The changes that were made for https://bugs.webkit.org/show_bug.cgi?id=261019 only apply to lightness values outside the relevant range. This issue is about what happens with colors that have a lightness of 0 or "max" and that should be displayed as black or white. When these colors also have some chroma/saturation they will be displayed as non-black/non-white. This is most likely the result of converting to rgb or display-p3 and then clipping the channels. To clarify.
> When these colors also have some chroma/saturation they will be displayed as non-black/non-white.
This is the current behavior and that behavior is incorrect.
They must be black/white.
|