Bug 259061

Summary: [macOS] Non-zero translateZ() causing layers to be stacked in a incorrect z-order.
Product: WebKit Reporter: Ethan Wong <bunnnywong>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bfulgham, mattwoodrow, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari 16   
Hardware: Mac (Apple Silicon)   
OS: macOS 13   
Attachments:
Description Flags
A case to reproduce this issue
none
A screenshot of this issue none

Description Ethan Wong 2023-07-10 10:16:27 PDT
Created attachment 467004 [details]
A case to reproduce this issue

See the attached case and screenshot.

This issue could be reproduced on:

* WebKit local build
* Safari on macOS 13.2.1 (and presumably lower)
* Safari Technology Preview up to macOS 13.4.1

Temporarily commenting out `[m_layer setTransform:value]` at `PlatformCALayerCocoa::setTransform(const TransformationMatrix&)` could work-around this issue.
Comment 1 Ethan Wong 2023-07-10 10:16:54 PDT
Created attachment 467005 [details]
A screenshot of this issue
Comment 2 Radar WebKit Bug Importer 2023-07-17 10:17:17 PDT
<rdar://problem/112410900>
Comment 3 Matt Woodrow 2023-08-09 14:31:39 PDT
Have you tried this on Safari on macOS 13.4 or higher? It should be fixed at that point.