Setting transform-style: preserve-3d; on a container causes jagged edges in children elements
Categories
(Core :: Graphics: WebRender, defect, P3)
Tracking
()
People
(Reporter: hello, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:81.0) Gecko/20100101 Firefox/81.0
Steps to reproduce:
- Write markup for a parent container and a child: <main><div>Hello</div></main>
- Give child size and background color so it’s visible: width: 300px; height: 100px; background-color: black;
- Set transform-style: preserve-3d; on container
- Transform child: transform: rotateZ(2deg) rotateX(8deg) rotateY(7deg);
Or, go to this page and toggle between flat and preserve-3d to observe this issue: https://developer.mozilla.org/en-US/docs/Web/CSS/transform-style
Actual results:
The rendered edges of the child element are jagged, as in not anti-aliased.
Expected results:
The rendered edges of the child element should be smooth, as in anti-aliased, just as they are in Firefox <81.
![]() |
||
Updated•5 years ago
|
Reporter | ||
Comment 1•5 years ago
|
||
This appears to have been fixed in 81.0b8. Thanks!
Reporter | ||
Comment 2•5 years ago
|
||
Firefox 81.0 (64-bit) does not have the issue anymore. But I noticed that the bug came back in Firefox Developer Edition 82.0b4 (64-bit). So I wanted to bring it to your attention.
![]() |
||
Updated•5 years ago
|
Reporter | ||
Comment 3•4 years ago
|
||
The broken animation and jagged edges came back in Firefox 96.
It visually breaks my website: https://andyjakubowski.com.
I think this may be pretty bad with so many people experimenting with 3D in the browser.
Any updates on this?
Reporter | ||
Comment 4•4 years ago
|
||
Reporter | ||
Comment 5•4 years ago
|
||
![]() |
||
Comment 6•4 years ago
•
|
||
(In reply to Andy Jakubowski from comment #3)
The broken animation and jagged edges came back in Firefox 96.
It visually breaks my website: https://andyjakubowski.com.
I think this may be pretty bad with so many people experimenting with 3D in the browser.
Any updates on this?
I've filed a bug(Bug 1749950) regarding an animation glitch that I noticed.
Updated•3 years ago
|
Updated•2 years ago
|
Updated•1 years ago
|
Description
•