Skip to content

[css-borders-4] Support for curve-based profiles to define custom corner shapes #12954

@777555777

Description

@777555777

Currently, the corner-shape property uses a superellipse to define the corners shape. While this is both powerful and intuitive, it is limited in the range of shapes that it can produce.

To increase its flexibility, corner-shape could be given the ability to accept a user defined curve as an alternative option to the superellipse.

This idea is already implemented in Blender’s bevel modifier, where custom profiles can be defined through editable curves.

Such an addition would make it possible to create more complex/stylistic shapes such as pixelated or ornament shaped corners without resorting to workarounds like border-image or clip-path that both come with their limitations or disadvantages.

Image

Example of the feature in Blender


Image Image

Pixelated porfile example


Image Image

Ornamental profile example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions