W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2021

Re: [csswg-drafts] should it be possible for an element with contain:paint to be part of a transform-style:preserve-3d scene? (#6202)

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Mon, 31 May 2021 07:58:07 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-851289215-1622447884-sysbot+gh@w3.org>
I'm not sure. Given that paint-contained element cannot have visible overflow, is there really an issue?
If I understand correctly, their content would get positioned into the ancestor's 3D scene, but whether they get painted or not is still depends on whether they overflow the bounds of the containing element, as it would with any other ancestor with overflow:clip. (in the case of non-clip, non-visible overflow, the problem doesn't arise, as the other values cause flattening).

If this is a misunderstanding, and elements that are part of a 3D scene do not get clipped at the boundaries of an overflow:clip element, then I suspect the correct answer is to add `contain: paint` to the list of property/value pairs that force the element to have a used style of flat for preserve-3d in https://drafts.csswg.org/css-transforms-2/#grouping-property-values

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

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 31 May 2021 07:58:34 UTC

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