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

I'm not _the_ expert on the graphics-side of `border-radius`, but ftr I don't think it's a trivial feature at all (it infests a lot of the background / shadow / border / clipping / hit-testing / etc code). In that sense, a clip-path-like thing seems a lot easier to implement (you don't care about semi-transparent borders, stuff overlapping etc etc).

I _think_ at least from the CSS / layout side the current `corner-shape: {round,angle}` thing seems fine. In an ideal world, thinking more as an author, something that supersedes border-radius seems a bit better. Maybe we could make `border*-radius` shorthands for `corner-*-shape: radii(<length-percentage>) ...` or so? But maybe not worth the complexity and the current thing seems like it'd be less effort to implement (compared to adding a new per-corner property plus all the relevant shorthands).

Anyways this doesn't look too hard to implement, specially if it's built on top of border-radius as it is on the current backgrounds-4 spec. But it doesn't seem to be in the "trivial-ish" camp either. I'd have to defer to @lsalzman / @mstange / @jrmuizel / @glennw / @kdashg for actual graphics-knowledge. My guess is that this is probably not technically hard to do, just some / a bunch of work to make fast.

-- 
GitHub Notification of comment by emilio
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8591#issuecomment-1475027368 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 23:15:58 UTC