Re: [csswg-drafts] [css-contain] Add contain-paint-margin CSS property (#4934)

> An interesting question is whether it should apply to clip path or not.

I would strongly argue no. The geometric nature of the clipping is too different. We can leave open the possibility of a `clip-path-margin` in the future if a need ever arises, but for now the most important thing is to make sure that the name of _this_ property is clear that it doesn't affect `clip-path` clipping.

Based on the agreement in the call, I'd lean towards the name `overflow-margin` (although that might be confused for something that affects scrolling), `overflow-paint-margin`, or `overflow-clip-margin`. Focusing on overflow emphasizes that this is about clipping the child content, not the painting of this element itself. (If _we_ were all confused about that, other people are going to be confused about it.) Another option would be to name it `content-paint-margin` to match with the `content-visibility` name we chose in #4843 .


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

Received on Friday, 8 May 2020 16:05:04 UTC