Closed Bug 1448817 Opened 6 years ago Closed 6 years ago

Incorrect rendering of rotated elements with border-radius

Categories

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

defect

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox-esr52 --- unaffected
firefox59 --- unaffected
firefox60 --- unaffected
firefox61 --- unaffected

People

(Reporter: code, Assigned: gw)

References

Details

(Keywords: nightly-community, regression)

Attachments

(2 files)

Attached file testcase.html
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180325220121

Steps to reproduce:

With WebRender enabled in Firefox Nightly, elements with certain combinations of the rotate()-transform and border-radius render incorrectly. I have extracted the attached testcase based on code that I am currently working on.


Actual results:

When the elements have been rotated beyond a certain degree, their colours render slightly brighter than intended and surrounding box-shadows seem to leak through them. The issue does not appear when border-radius is removed.
Component: Untriaged → Graphics: WebRender
Product: Firefox → Core
Version: 61 Branch → Trunk
good = looks good, but is drawn on chrome when zooming in.
bad = transparent, but no longer drawn on chrome.

mozregression --good 2018-01-17 --bad 2018-03-25 --pref gfx.webrender.all:true startup.homepage_welcome_url:"https://bug1448817.bmoattachments.org/attachment.cgi?id=8962286"
> 10:27.09 INFO: Last good revision: d49f13abd54ad351ee1665a639127f14b938bc25
> 10:27.09 INFO: First bad revision: 5eb19c81c7fd7d5ffbc3eac211cf20136c02c3d7
> 10:27.09 INFO: Pushlog:
> https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=d49f13abd54ad351ee1665a639127f14b938bc25&tochange=5eb19c81c7fd7d5ffbc3eac211cf20136c02c3d7

> 5eb19c81c7fd	Kartikaya Gupta — Bug 1439565 - Update reftest annotations for changes in WR PR 2445. r=jrmuizel
> 3a32ca63e380	Kartikaya Gupta — Bug 1439565 - Update webrender to commit 8a19316a733a484bf9bafb8257e3008b1418bfe4. r=jrmuizel

Try builds are gone.
https://github.com/servo/webrender/compare/e8d2ffb404a85651fe08a6d09abbece9bd2b9182...8a19316a733a484bf9bafb8257e3008b1418bfe4
Blocks: 1439565
Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true
This appears to be due to Patrick's pathfinder change?
Assignee: nobody → gwatson
Priority: -- → P1
The PathFinder code hasn't landed in Gecko (or WR) yet, so it won't be that.
Oh, I think I may have misinterpreted your comment, sorry. I thought you were referring to the currently open Pathfinder integration PR. Indeed, it does appear to be related to the anti-aliasing algorithm change that Patrick added.

I'll try to create a reduced wrench test case for Patrick to take a look at.
WR issue with reduced wrench test case: https://github.com/servo/webrender/issues/2576
This will be fixed when https://github.com/servo/webrender/pull/2604 lands in WR/Gecko.
Depends on: 1449562
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
QA Whiteboard: [good first verify]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: