Re: [csswg-drafts] [css-shapes-2] Add a way to change an element's shape (#6997)

I don't really think giving `clip-path` the ability to have borders/box-shadows etc is the right way to go here. `clip-path` is already doing what it's intended to do i.e clip a path. It makes more sense to for there to be a separate property to deal with the creation of an element shape.

There are plenty of existing use cases of having a rectangular shape that is revealed with a `clip-path` animation. No reason folks wouldn't want to do the same thing with non-rectangular shapes. If you are already using `clip-path` for the elements shape how would it be possible to reveal the element with a `clip-path` animation?

![GIF](https://user-images.githubusercontent.com/1286791/176573860-e781a074-6954-49e7-850e-d9c0cb834bbe.gif)

https://codepen.io/jsnkuhn/pen/BaryjEV?editors=1100

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


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

Received on Thursday, 30 June 2022 01:36:19 UTC