CoreAnimation currently always sorts layers by z position, but we should only be sorting layers that are within a 3d rendering context. The other rendering backends, and hit-testing/point-mapping get this right.
<rdar://problem/102634551>
Pull request: https://github.com/WebKit/WebKit/pull/6773
Committed 257386@main (73cd744e1690): <https://commits.webkit.org/257386@main> Reviewed commits have been landed. Closing PR #6773 and removing active labels.