- From: Noam Rosenthal via GitHub <noreply@w3.org>
- Date: Wed, 02 Jul 2025 20:56:07 +0000
- To: public-css-archive@w3.org
The algorithm for superellipse spread is actually a bit simpler than the ^3 reduction and I think works better for all curvatures including ordinary rounded corners and circles. - It takes the spread and converts it into a scale+translate matrix that would map the original rect into the rect-after-spread. This might be a non-uniform scale if it's a non-square rect. - it applies that matrix to the original shape created by the rect+curved corners. This works well for shadows because a shadow is not supposed to change the shape, only transform a copy of it in (pseudo-)3d space. I was not part of the previous takes on this but I wonder if we could rethink applying this algorithm to rounded rects without corner-shape. -- GitHub Notification of comment by noamr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7103#issuecomment-3029297790 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 2 July 2025 20:56:10 UTC