Skip to content

[css-overflow-5] overflow-clip-margin: content-box should not apply border radius to the content box. #13388

@flackr

Description

@flackr

The overflow-clip-margin property specified in css-overflow supports a content-box value. I'm not sure where it is specified, but in building a demo I found it to have unexpected behavior.

In particular, this is my setup. The element has border-radius: 50% and some left and top padding resulting in the content-area filled by the only child with a pale yellow background:

Image

When we apply overflow: clip; overflow-clip-margin: content-box to the container however, the border radius is applied to the clipping content-box:

Image

I would have expected it to clip to the content box with the corners slightly clipped due to intruding border, i.e.

Image

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