Skip to content

[css-borders-4] Rendering of outset shadow spread with concave 50% corner-shapes #13037

@noamr

Description

@noamr

The current spec for adjusting border-radius assumes that spread behaves like an extended border.
However, when dealing with concave corners that meet each other (50%), this feels a bit strange.

e.g:

    .target {
        position: absolute;
        left: 50px;
        top: 50px;
        width: 200px;
        height: 300px;
        box-sizing: border-box;
        corner-shape: superellipse(-0.5) notch scoop bevel;
        border-radius: 50%;
        background: green;
        border: 20px solid purple;
        box-shadow: 0 0 2px 20px orange;
    }
Image

The shadow spread outer path is basically rendered here like a stroke bevel join (or something similar).

This is more pronounced when all the corners are bevel (rhombus):

Image

Basically the spread extends the edges of the rect, making a rhombus into an octagon of sorts.

This is probably in line with the philosophy of shadow-spread being a stroke of sorts, but I wanted to verify that with everyone.

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