Re: [csswg-drafts] [css-backgrounds-3][css-borders-4] The shape of box-shadow should be a circle for a box with border-radius:50% and big spread (#7103)

Algorithm from resolution:

```js
function adjusted_radius(radius_width, radius_height, edge_width, edge_height, spread) {
  let coverage = Math.min(
    2 * radius_width / edge_width,
    2 * radius_height / edge_height
  ) || 0;

  return [radius_width, radius_height].map(value => {
     if (value >= spread || coverage >= 1)
       return value + spread;
  
    let r = 1 - value / spread;
    return value + testCase.spread * (1 - r**3 * (1 - coverage ** 3));
  });
```

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


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

Received on Wednesday, 1 October 2025 17:12:27 UTC