Skip to content

[css-backgrounds] Border radius and scrollbars #4643

@mrego

Description

@mrego

I've found that the behavior of the following example is very different in Chromium/WebKit vs Firefox:

<div style="width: 500px; height: 500px; border-radius: 100px;
            border: solid thick; background: magenta; overflow: scroll;">
</div>

Screenshots of previous example in Chrome and Firefox

In Chromium/WebKit border-radius still applies to the corners with scrollbars (all but the top-left corner), however in Firefox it only applies to the top-left corner.

According to the spec (https://drafts.csswg.org/css-backgrounds-3/#corner-clipping):

Other effects that clip to the border or padding edge (such as overflow other than visible) also must clip to the curve.

I understand it means that it should clip all the corners, but I'm not sure if that makes a lot of sense having scrollbars, at least the Chromium/WebKit behavior is kind of weird.

What's the expected behavior here? Should we update the spec accordingly?

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