W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2020

Re: [csswg-drafts] [css-backgrounds-3] Adjustments to spec needed to implement rounded corner clipping of descendants (#5680)

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Thu, 29 Oct 2020 18:18:52 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-718934870-1603995531-sysbot+gh@w3.org>
Hi, I'm the editor. :) What the spec is trying to say there is that when something is clipped to a particular edge, that clipping is affected by the way the edge is curved by the border radius as described in the previous section. Backgrounds use the edge specified by `background-clip`. But content does not. Overflowing content is always clipped by the padding edge: the spec here is just saying that this edge is curved at the corners by the border radius. Similarly, the content of a replaced element is always constrained by the content-box; and the spec here is saying that the corners of that box are likewise curved and the replaced element content clipped accordingly.

If you want to clip content to the content edge instead of the padding edge, you'd need a new property to do it. Maybe re-using `overflow-clip-margin` or whatever we decided to call it, by giving it some keywords.

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 29 October 2020 18:18:54 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:21 UTC