Transform rotate gets distorted when parent has perspective property
Categories
(Core :: Graphics: WebRender, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox113 | --- | affected |
People
(Reporter: hadang999, Assigned: gw)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Steps to reproduce:
Create a div that has the perspective property. Inside the perspective div, create a div with a transform property. Inside the transform div, apply a rotate transformation in either the X or Y axes.
See attached file for two examples. The fancy example shows a possible use case with parallax scrolling
Actual results:
The child div rotates but gets heavily distorted as if there is a vanishing point.
However, in the Developer Tools, when you hover over the child div in the Inspector pane, the highlighted div appears to rotate correctly.
See attached file for two examples. In the fancy example, as you scroll, the vanishing point distortion is more obvious
Expected results:
The child div should rotate without getting distorted as if there is a vanishing point. It should rotate similarly to how highlighted element rotates in the Developer Tools.
Expected behavior appears correctly in Chrome 109
Updated•3 years ago
|
Comment 1•3 years ago
|
||
Glenn, please adjust Severity if you disagree.
Updated•3 years ago
|
| Assignee | ||
Comment 4•3 years ago
|
||
I'll assign this to myself, and see if I can get it fixed this semester.
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 5•2 months ago
|
||
Fixed by bug 2038549 — specifically the followup "Do frustum clipping in the root space of the preserve-3d context" (commit 575efdb36a22). Bisected against the original testcase (attachment 9318914 [details]): the earlier plane-split commit fixed the wrench reftests but the browser repro only rendered correctly once frustum clipping moved to preserve-3d root space. Verified on Fx152.
Description
•