[csswg-drafts] [css-masking] Find a way for clip-path to play nicely with borders and filters (#5881)

noamr has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-masking] Find a way for clip-path to play nicely with borders and filters ==
Currently, clip-path has a lot of great options. However, it has two limitations:
* You can't use it to define the stroke of a border
* It clips its element's box shadow and filters (e.g. blur / drop-shadow) - while this behavior is vaguely defined.

It would be great if there was a shape-based option that behaved like border-radius:
- it clips the contents when `overflow: hidden`, but not its own filters
- The borders trace it

Maybe a new property `border-path` (between `border-radius` and `clip-path`)?
Maybe an additional parameter to `clip-path`?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5881 using your GitHub account


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

Received on Tuesday, 19 January 2021 13:35:49 UTC