Skip to content

Feature request: two values in border-radius property #42988

Open

Description

Reference: https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius

What problem does this address?

Currently it is possible to set a single value in border-radius property.
Examples:

border-radius: 50%;
border-top-left-radius: 50px;
border-top-right-radius: 50px;
border-bottom-left-radius: 50%;
border-bottom-right-radius: 50%;

image

What is your proposed solution?

Possibility to set two values in border-radius property.
Examples:

border-radius: 50% 50% 20% 80% / 25% 80% 20% 75%;
border-top-left-radius: 50% 25%;
border-top-right-radius: 50% 80%;
border-bottom-left-radius: 20%;
border-bottom-right-radius: 80% 75%;

Result: better for ellipses.
Example: https://codepen.io/sparklingman/pen/MWjGBXv
image

Please confirm that you have searched existing issues in the repo.

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    CSS StylingRelated to editor and front end styles, CSS-specific issues.Related to editor and front end styles, CSS-specific issues.[Feature] BlocksOverall functionality of blocksOverall functionality of blocks[Type] EnhancementA suggestion for improvement.A suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions