8000 [css-masking] Find a way for clip-path to play nicely with borders and filters · Issue #5881 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

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

@noamr

Description

@noamr

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0