- From: Joe Pea via GitHub <sysbot+gh@w3.org>
- Date: Sat, 27 Apr 2024 18:21:38 +0000
- To: public-css-archive@w3.org
@tabatkins yeah I understand the spec specifies that, but it is something I bet most people don't know, and the behavior most people *see* most of the time is basically the equivalent of a simple multiplicative opacity in terms of metal model. If they want 3D, they'll probably skip CSS because WebGL/GPU libs are a lot more powerful currently. Is there a way to make an element break out of the graphics layer into its own (while the parent has opacity < 1)? Why not update the spec so that at least transform-style:preserve-3d content is not flattened (so it actually preserves 3D like it says!) by breaking out into a new layer, and is also not affected by ancestor opacity (the layer opacity starts over at 1)? This would solve the OP because to "highlight" an element you could break it out in 3D space (even just a small amount that is not noticeable by the naked eye) and it would be its own new graphics layer with its own opacity, *without having to change the shape of the DOM tree*. This would also be more like how actual 3D engines work. Flattening, f.e. as if setting a 3D node's scale.z to zero, when the tree node has opacity < 1, is nonsensical in all 3D engines that I know of. This is very surprising behavior for 3D in CSS. -- GitHub Notification of comment by trusktr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10214#issuecomment-2081120551 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Saturday, 27 April 2024 18:21:39 UTC