Re: [csswg-drafts] [css-transforms-2] proposal new transform-style: detached (#4242)

> On the other hand, if anyone was hoping to have the 3D effect preserved while still maintaining non-fixed positioning (contextual layout and scrolling and so on), you would need to define how the 3D construct gets passed through all parent styles or effects that usually cause flattening.

If any of the ancestors of an element have a flattening effect either explicitly specified (transform-style: flat) or forced due to a grouping property (filters, opacity, clip etc.), the element cannot not be detached and will be rendered to the main surface.

> It is too late to undo this now, although this could conceivably be a case where a new detached value could change the behavior — though I'd probably see this as a new value for position rather than for transform-style.

I agree that transform-style is not the ideal attribute to specify detached modifier, but I don't think position is either. If I am not wrong, positioned elements are still rendered in the parent's render context and it should be possible to detach an element with any position attribute.

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

Received on Friday, 17 January 2020 18:04:32 UTC