- From: Dan Burzo via GitHub <sysbot+gh@w3.org>
- Date: Tue, 07 Mar 2023 15:09:56 +0000
- To: public-css-archive@w3.org
Color ranges, specifically using interpolation syntax with which authors will be familiar from gradients, sound like a neat way to derive a given color to achieve sufficient contrast from the base color (also captured in https://github.com/w3c/csswg-drafts/issues/5153). Given there can't be any assumptions about the monotonicity of contrast, so binary search is unhelpful, would it make sense to allow authors to define the number of samples the range computes to, with a default that makes it reasonable to evaluate the list from start to end against one or more contrast targets? And possibly an upper limit so author's can't inadvertently degrade performance on less powerful devices? Something along the lines of: ``` range(<number>? <interpolation-method>, <color>#) ``` -- GitHub Notification of comment by danburzo Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7360#issuecomment-1458338719 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 7 March 2023 15:09:58 UTC