Re: [csswg-drafts] [css-background-4] Replace `corner-shape` with property that just does angled corners + rounding (#8591)

So in general, I agree with adding an additional property to work with border-radius, and it taking some form of angle hinting, but  I'm going to throw out a crazy idea here:

![pig2](https://user-images.githubusercontent.com/93550009/226092937-baa97ea1-12c4-4838-9170-92744e3a1f12.png)

Using cubic bezier function to draw the radius, with  `corner-angle` taking angle values for the "handles", and `border-radius` redefined as the scalars.

Default value would be 0deg, and `straight` can be used to sit the angle on a straight line. This should cover for both scoop and bevel; notch can't be, but that should be covered with other tricks, and is niche, as you say.

Downside is that you can't perfectly represent a circle with cubic-bezier.

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


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

Received on Saturday, 18 March 2023 07:59:48 UTC