W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2019

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

From: Chris Harrelson via GitHub <sysbot+gh@w3.org>
Date: Wed, 30 Oct 2019 16:50:29 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-548004645-1572454228-sysbot+gh@w3.org>
How about this proposal:

`transform-style: preserve-3d` on the root element causes no flattening at the root, for user agents which want to display multiple planes in 3D. Otherwise flattening will still occur.

That's it. No other changes. :)

In particular, the previous resolutions about what causes flattening and how `preserve-3d` is set remain. IOW:
* Any element with `transform-style` other than `preserve-3d` flatten into the ancestor element's plane
* All effects and clips cause the used value of `transform-style` to be flat.

If a developer wants to have a 3D plane that floats above the other content in a user agent that supports such things, they should:
* put `transform-style: preserve-3d` on the root element of the 3D plane and all ancestors
* Don't have flattening properties on the ancestors
* Place a 3D transform on the root element of the 3D plane

GitHub Notification of comment by chrishtr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4242#issuecomment-548004645 using your GitHub account
Received on Wednesday, 30 October 2019 16:50:31 UTC

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