W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2021

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

From: Noam Rosenthal via GitHub <sysbot+gh@w3.org>
Date: Tue, 19 Jan 2021 13:35:47 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-789028256-1611063346-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:31:38 UTC