mdn/content

relative colors when origin is beyond gamut of output

Open

#32,704 创建于 2024年3月15日

在 GitHub 查看
 (5 评论) (0 反应) (0 负责人)Markdown (22,427 fork)batch import
Content:CSShelp wanted

仓库指标

Star
 (8,900 star)
PR 合并指标
 (平均合并 7天 3小时) (30 天内合并 147 个 PR)

描述

Once the PR https://github.com/mdn/content/pull/32004 is merged, but we should address the following :

What happens if you do a relative color with the origin color being outside the gamut of the function? For example, if you use a custom property of a fantastically vibrant magenta using oklab() and add opacity using rgb() as the output. In this case, only the alpha value changed, but I assume the origin color is converted to color(srgb) rather than rgb(), which doesn't matter in the alpha case, but does matter if the value of b is changed.

Originally posted by @estelle in https://github.com/mdn/content/pull/32004#discussion_r1525364837

贡献者指南