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

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