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

Makes sense. In view transitions, specifically nested groups, we currently say that the `::view-transition-group-children` element is sized to the same size as the original element with a transparent border of the same size and shape as the original element. The effect of this is that if the developer says `overflow: clip` on this, then everything will clip as expected. And it does.

Except if the original element has non-overlay scrollbars. So ideally, what we want to say is `padding-bottom: ...` for the width of the scrollbar and `overflow-clip-margin: content-box` to clip the actual content so that it doesn't draw overtop of the scrollbar, which should work. And it does.

Except if the corner shape is non-square, then we end up with the effect like you're describing, so we really do want to solve this in a way that you describe. All in all, I think it's important to solve this.

-- 
GitHub Notification of comment by vmpstr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13388#issuecomment-3792236699 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 23 January 2026 20:22:34 UTC