Perspective related CSS not working since version 91.0
Categories
(Core :: Web Painting, defect)
Tracking
()
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
Comment 1•3 years ago
|
||
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.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Set release status flags based on info from the regressing bug 1717161
Comment 3•3 years ago
|
||
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.
Updated•3 years ago
|
Updated•3 years ago
|
Reporter | ||
Comment 4•3 years ago
|
||
Thank you Matt, much appreciated!
Updated•3 years ago
|
Comment 5•3 years ago
|
||
Set release status flags based on info from the regressing bug 1716904
Updated•3 years ago
|
Updated•3 years ago
|
Comment 6•3 years ago
|
||
Marking invalid based on comment 3.
Description
•