Re: [csswg-drafts] [css-borders-4] Interaction of single-path `border-shape` with non-uniform `border-width` (#11662)

> This would mean that a roundrect would have its arc corner segments take their width from _one of_ the sides they're joining, but exactly which side depends on the arc's aspect-ratio, right? In your linked example, the curvy segment is thick and green (the 'left' styles) because the straight-line path between the segment endpoints is slightly more upright (it shifts 170 horiz and 180 vert), and thus "points at" the left side? (Yeah, confirmed that if it lands on -10 0, so 190 horizontal shift, it takes from the bottom.)
> 
> What do you do if it's a tie? (I presume it'll just take from one or the other arbitrarily.)
> 
> Hm tho, this could potentially work as the default. For cases where you're just, say, making a border with slanted lines for affect, this lets you have the "obvious" border style mapping. Can be a little weird in complex cases, but that's why we want to have the ability to specify the styles manually, too.

I played around with this and updated the demo to have an opt in for splitting curves at the inflection/extrema point(s). 
I think the inflection one looks pretty promising and perhaps what one would expect from auto-splitting paths into a box border?

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


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

Received on Wednesday, 12 February 2025 16:33:09 UTC