W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2018

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

From: Amelia Bellamy-Royds via GitHub <sysbot+gh@w3.org>
Date: Wed, 24 Jan 2018 07:10:08 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-360040732-1516777806-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:23 UTC