Re: [csswg-drafts] [css-backgrounds-4] Use cases for corner-shape (#6980)

@clshortfuse 

Coincidentally enough I just used border masking for the first time myself last week. Turns out that no browser currently supports `mask-border`. Chrome and Safari use an old unofficial syntax `-webkit-mask-box-image` instead.

Something to keep in mind generally about using clipping/masking to create corners is that you are clipping/masking the entire element not just the corners. So if you ever want to, let's say, have an image over lap the edge of your element you're out of luck because it'll just get clipped off.

I've started properly using the `corner-shape` paintAPI polyfill (https://github.com/jsnkuhn/corner-shape) I made on side projects and am have good luck with it so far.

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


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

Received on Thursday, 26 January 2023 15:25:25 UTC