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

Thanks, I was missing the context that the content-box does also take on the border shaping. It was surprising but I can see this is working as intended.

> I agree with fantasai. In fact, the default is `overflow-clip-margin: padding-box 0px`, which is precisely your expected behavior in the 3rd image.

In this case yes, except if the content has overflow - as in the case I was trying to build this layout for. It seems that the only way to ensure the content is clipped to rectangle would be with a descendant applying the clip.


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


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

Received on Saturday, 24 January 2026 00:49:18 UTC