Closed Bug 1734477 Opened 3 years ago Closed 8 months ago

WPT test "rotate-transform-equivalent.html" fails in Firefox (with WebRender)

Categories

(Core :: Graphics: WebRender, defect, P3)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: dholbert, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

WPT test rotate-transform-equivalent.html fails in Firefox, with a very slight positioning difference.

https://wpt.fyi/results/css/css-transforms/animation/rotate-transform-equivalent.html

We show a slight "halo" (an antialiasing artifact?) around the green shape (a few pixels away from its edge), and the halo is a slightly different color in the testcase vs. the reference case.

The "halo" seems to be a WebRender-specific artifact -- it's not present at all in Firefox-with-WebRender-disabled, and it's not present in Chrome (both of which pass this WPT test).

Note, this test is included in the "compat2021" test set:
https://github.com/Ecosystem-Infra/wpt-results-analysis/blob/master/compat-2021/css-transforms-tests.txt

If possible, it would be nice to fix the bug (or fix the test to avoid the bug, if we believe that this fringe is an acceptable artifact & shouldn't be something that WPT tests assert against).

Blocks: compat2021

It looks like the "halo" artifact here is from the element's background "bleeding" beyond its border, via antialiasing on pixels that are only partly covered up, or something like that.

This artifact happens in Chrome as well, FWIW, in 2D transforms like the first example below -- but it's not present if there's any 3D component to the transform as in the second example below:

data:text/html,<div style="rotate: 0 0 1 45deg; border: 2px solid white; background: red; height: 50px; width: 50px">
data:text/html,<div style="rotate: 0 0.01 1 45deg; border: 2px solid white; background: red; height: 50px; width: 50px">

BTW: the fuzzy threshold seems to be pretty non-intermittent here, on a given platform -- but the fuzzy threshold may vary per-platform.

  • On my local linux machine, I have 348 pixels different, maximum difference per channel 35
  • On try, Linux64 and Windows and android-em-7-0-x86_64-lite-qr seem to match that except with maximum difference per channel 34
  • ...though Android 7.0 x86-64 WebRender instead seems to reliably report Found 277 pixels different, maximum difference per channel 46 (possibly different due to rendering at a different resolution?)

The severity field is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)
Severity: -- → N/A
Flags: needinfo?(jmathies)
Priority: -- → P3

The severity field is not set for this bug.
:jimm, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jmathies)
Severity: N/A → S4
Flags: needinfo?(jmathies)

Passes now.

Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: