- From: Simon Fraser via GitHub <sysbot+gh@w3.org>
- Date: Sun, 30 Mar 2025 22:39:30 +0000
- To: public-css-archive@w3.org
The spec needs to say how to map the 0-1 range to a k value, so you need to describe the inverse of `0.5^(1 / (2^n))`, which is an ugly thing with lots of nested `ln()`; in JS; ``` const log2 = Math.log(2); return (Math.log(- 1 / Math.log(fraction)) + Math.log(log2)) / log2; ``` And this is actually mapping `p` -> `s`, not `p` -> `k`. I think the animation logic also needs to preserve symmetry by saying that if the fraction `p` < 0.5, you compute for `1-p` and negate the result (or somehow otherwise agree with the spec text about how to render the curve). -- GitHub Notification of comment by smfr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11609#issuecomment-2764780787 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 30 March 2025 22:39:31 UTC