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

dbaron has just created a new issue for https://github.com/w3c/csswg-drafts:

== should it be possible for an element with contain:paint to be part of a transform-style:preserve-3d scene? ==
Right now the specs [for `contain:paint`](https://drafts.csswg.org/css-contain-1/#containment-paint) and [for `transform-style`](https://drafts.csswg.org/css-transforms-2/#transform-style-property) allow an element with `contain: paint` to be part of a 3D scene.  If such an element both has `transform-style: preserve-3d` *and* has a parent that does, then this means that its children (or further descendants, if the children have `transform-style: preserve-3d`) are rendered as part of its parent's (or further ancestor's, if the ancestor chain has `transform-style: preserve-3d` further up) 3D scene.

While the intended guarantees of `contain: paint` aren't clearly defined, it seems a bit nonintuitive to me that it would allow children to escape the container in this way.

What is the desired behavior here?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6202 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 9 April 2021 22:30:29 UTC