Closed Bug 1726030 Opened 3 years ago Closed 3 years ago

Perspective related CSS not working since version 91.0

Categories

(Core :: Web Painting, defect)

Firefox 91
defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- unaffected
firefox91 --- wontfix
firefox92 --- wontfix
firefox93 --- wontfix
firefox94 --- wontfix

People

(Reporter: denis_kustura, Unassigned)

References

(Regression)

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0

Steps to reproduce:

We have a parallax effect on multiple apps produced by using following CSS:

height: 100vh;
overflow-x: hidden;
overflow-y: auto;
perspective: 2px;
perspective-origin: 0 0;

Since version 91.0 it stopped working as expected, you can compare by opening this page on multiple browsers: https://stoic-kowalevski-4065ca.netlify.app

The Bugbug bot thinks this bug should belong to the 'Core::CSS Parsing and Computation' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
Component: CSS Parsing and Computation → Graphics
Regressed by: 1717161
Component: Graphics → Web Painting

Set release status flags based on info from the regressing bug 1717161

This is actually a 'regression' from bug 1716904, where we changed to correctly implement the spec regarding how perspective affects descendants.

The perspective property is taken from the parent element of transformed elements - https://drafts.csswg.org/css-transforms-2/#accumulated-3d-transformation-matrix-computation

In the demo, you have two intermediate <div> elements between the perspective, and the parallax transformed elements. Removing these, or adding transform-style:preserve-3d (to "MuiContainer-root MuiContainer-maxWidthLg" and "MuiGrid-root container MuiGrid-container") fixes the issue.

Regressed by: 1716904
No longer regressed by: 1717161
Has Regression Range: --- → yes

Thank you Matt, much appreciated!

Set release status flags based on info from the regressing bug 1716904

Marking invalid based on comment 3.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.