(sw-wr) Element with "transform: scaleX" and "image-rendering" becomes corrupted
Categories
(Core :: Graphics: WebRender, defect)
Tracking
()
People
(Reporter: krinkle, Assigned: lsalzman)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(2 files)
When an element with image-rendering: crisp-edges;
(or image-rendering: pixelated;
) uses transform
(e.g. to invert it with scaleX(-1)
), it becomes corrupted or even dissappears completely.
It seems to be specific to elements with PNG or SVG background images, as I could not reproduce it on elements with plain text content or with a linear gradient as background image.
Isolated test case: https://codepen.io/Krinkle/full/Exomjgv
<span style="
display: block;
width: 50px;
height: 50px;
position: absolute;
top: 45%; left: 45%;
background-image: url(https://treasure21.timotijhof.net/src/dino.png);
image-rendering: crisp-edges;
background-size: 100% 100%;
transform: scaleX(-1);
"></span>
Live example: https://treasure21.timotijhof.net/vault.html
Browsers:
- Firefox 99 on Windows 11: Broken.
- Firefox 90 on Windows 11: Broken.
- Firefox 80 on Windows 11: OK.
- Firefox 70 on Windows 11: OK.
- Firefox 88 on Linux: Broken.
- Firefox 45 on Linux: OK.
- Firefox 98 on macOS: OK.
- Safari 15: OK.
- Chrome 99: OK.
Possibly related:
- Text invisible if font is Courier and transform used. https://bugzilla.mozilla.org/show_bug.cgi?id=670306
- Caret invisible when using scaleX. https://bugzilla.mozilla.org/show_bug.cgi?id=940671
- -moz-transform: scaleX(-1) distorts image. https://bugzilla.mozilla.org/show_bug.cgi?id=683707
Reporter | ||
Comment 1•3 years ago
|
||
Reporter | ||
Updated•3 years ago
|
Comment 2•3 years ago
|
||
Seems to work here on Nightly and Stable (on Linux)
Updated•3 years ago
|
Comment 3•3 years ago
|
||
I can reproduce the issue in Nightly100.0a1 Windows10 if HWA is disabled (i.e. sw-wr).
Updated•3 years ago
|
Comment 4•3 years ago
|
||
Also reproduced in Firefox97.0.
Regression window(with sw-wr):
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=22e706c2ff1d4469907bc44c8c1bc256512553e7&tochange=bfe0b7fdfc027afbff4e2d9002a771d92d3bee41
Suspect; Bug 1686244
Assignee | ||
Comment 5•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Comment 6•3 years ago
|
||
Set release status flags based on info from the regressing bug 1686244
Comment 8•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Description
•