- From: Noam Rosenthal via GitHub <sysbot+gh@w3.org>
- Date: Tue, 06 May 2025 10:31:24 +0000
- To: public-css-archive@w3.org
I actually thought of a third option that has some nice attributes to it: constraint the radius in only one of the dimensions. For the following CSS: ```css border-top-right-radius: 70%; border-bottom-left-radius: 70%; corner-shape: notch; ``` where the radius in the next clockwise dimension remains unconstrained, and the radius in the counterclockwise dimension is constrained in such a way that the corners do not overlap. See options below for how this is going to look like. This gives us 3 options. For each one I'll show what CSS it would be equivalent to and how the OP example would look like: Original: ```css border-top-right-radius: 70%; border-bottom-left-radius: 70%; corner-shape: notch; ``` 1. Constrain the radius. ```css border-top-right-radius: 50%; border-bottom-left-radius: 50%; corner-shape: notch; ```  2. Constrain the shape ```css border-top-right-radius: 70%; border-bottom-left-radius: 70%; /* 1.02 is some computed number that puts the diagonal half corners in the same point */ corner-shape: superellipse(-1.02); ```  3. Constrain the radius in one dimension ```css border-top-right-radius: 50% 70%; border-bottom-left-radius: 50% 70%; corner-shape: notch; ```  -- GitHub Notification of comment by noamr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12098#issuecomment-2854067453 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 6 May 2025 10:31:24 UTC