Re: [csswg-drafts] [css-contain] contain:paint should use padding box instead of content box

Does "contents" (in the context of contents which must be clipped) only include child boxes, or does it include the element itself?  If it includes the element itself, I would assume that it would only be clipped to the border-box.

But if `contain: paint` only clips children, not the element itself, does that mean that the element itself can have border-image, box-shadow, and other effects that spill paint beyond its normal dimensions?

(As far as clipping children goes, I agree that it makes sense to match `overflow` clipping: to the border-radius-adjusted padding-box.)

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

Received on Wednesday, 24 January 2018 07:10:11 UTC