Re: [csswg-drafts] [css-values] Math Constant phi for Golden Ratio (#4702)

> For no reason whatsoever, adding the formula for phi broken down in a way that will be hard to forget, ever.
> 
> ```js
>     const phi = Math.pow(5, 0.5) * 0.5 + 0.5;
> ```
> 
> ## _Or:_

Ha, that's nice. I had to do a double take as it looked very different from the one I knew:

$$\frac{\sqrt{5} + 1}{2}$$

Which can be expressed in CSS as:

```css
--phi: calc((sqrt(5) + 1) / 2);
```

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4702#issuecomment-1223907893 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 23 August 2022 11:03:26 UTC