Closed Bug 1253937 Opened 8 years ago Closed 8 years ago

color-burn rendering is wrong with CompositorOGL

Categories

(Core :: Graphics: Layers, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID
Tracking Status
firefox47 --- affected

People

(Reporter: mstange, Unassigned)

References

Details

(Keywords: regression)

Attachments

(3 files)

The mix-blend-mode testcase should match the reference. On OS X it does not.
Attached file reference
Attachment #8727174 - Attachment description: testcase with backgroud-blend-mode: color-burn → testcase with background-blend-mode: color-burn
So for R and G we have Cs = 0, Cb = 0.5, alpha_s = 0.5, alpha_b = 1.0.
The expected result after the final compositing step is 0.
I don't really see how this is supposed work since the final compositing step is using OVER on a 0.5 backdrop, using the original source alpha value of 0.5. In order to overwrite 0.5 with 0 you'd have to use an alpha value of 1.
Huh. This bug might be invalid.
I got the reference by looking at the rendering of Release Firefox on OS X and of Safari. Both are using CoreGraphics. And now I think they're wrong.

Firefox with the Skia content backend agrees with our new rendering. And unsurprisingly, so does Chrome.

Rik, do you know anything about CG's discrepancy with respect to color-burn?
Flags: needinfo?(cabanier)
And here's a tweet complaining about differences in color-burn rendering on iOS between CoreGraphics and CoreImage: https://twitter.com/tinrocket/status/297885629495246848
Yup, just a CG bug. They are ignoring the alpha component of the source and treating the source as opaque.

I'll file a bug with Apple.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(cabanier)
Resolution: --- → INVALID
Yes, we've logged the same bug with Apple several times.
They are aware of the issue but for some reason they can't/won't fix it.
Thanks Rik. Are you aware of any other blend modes that are buggy in CG or is it just color-burn?
Yes, I believe color-dodge has some glitches as well. However, it only happens in the CA layer. CG is fine.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: