Closed Bug 1216200 Opened 9 years ago Closed 9 years ago

inset box-shadow renders incorrectly

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla44
Tracking Status
firefox44 --- verified

People

(Reporter: dholbert, Assigned: mchang)

References

Details

(Keywords: regression)

Attachments

(4 files)

Attached file testcase 1
STR:
 1. Load attached testcase.

EXPECTED RESULTS:
 Shadow at lower-right of bordered box.

ACTUAL RESULTS:
 Weird disjoint grid of shadows.

Firefox 41 (release) & chrome each give EXPECTED RESULTS.
Firefox Nightly 44.0a1 (2015-10-19) gives ACTUAL RESULTS.

This seems similar to bug 1213545, but the patch there (attachment 8674497 [details] [diff] [review]) doesn't fix the bug. (though it does change the rendering a bit)  But feel free to dupe if we want to extend/adjust that bug's patch to fix this case, too.
Looks like this went from drawing the correct thing to drawing *nothing* with this regression range:

https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=11dc79e232110ba6de5179e46dfbda77b52a88c3&tochange=4313752f69956ae248bd4e7ff3913c8dd4252698

(So, Bug 1188075)

Then a few days ago, this went back to drawing something (hooray! but it draws the wrong thing, per this bug).  That change was likely a result of bug 1211363.
Blocks: 1188075
Assignee: nobody → mchang
And also affect to a complete theme, See http://forums.mozillazine.org/viewtopic.php?f=23&t=2968697
I think I've got this problem on my system, but it's also related to the theme I'm using.

Please see http://forums.mozillazine.org/viewtopic.php?f=23&t=2968697

I've filed Bug 1216220, but now it may be a dupe.
Thanks Alice.
See Also: → 1216136
This accounts for negative spread values when calculating the min inset blur. If we have a blur radius and a negative spread value, we would create a min inset blur size that is too small to actually blur correctly, and copy over incorrect parts to the final destination. This patch ensures that even if we have a negative spread radius, we still create a surface big enough to do the blur.
Attachment #8676945 - Flags: review?(mstange)
Attachment #8676945 - Flags: review?(mstange) → review+
https://hg.mozilla.org/mozilla-central/rev/eddc6be3bd52
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
We also need a test here.
Flags: in-testsuite?
Flags: needinfo?(mchang)
Attachment #8678313 - Flags: review?(mstange)
Comment on attachment 8678313 [details] [diff] [review]
Reftest with negative spread value

You can just use about:blank as the reference, so that you don't need to add an empty -ref.html file.
Attachment #8678313 - Flags: review?(mstange) → review+
Verified fixed FF 44.0a1 (2015-10-25) Win 7, Ubuntu 14.04, OS X 10.10.5
Status: RESOLVED → VERIFIED
Successful try for reftest - https://treeherder.mozilla.org/#/jobs?repo=try&revision=3a1c98660200
Flags: needinfo?(mchang)
This may be related, let me know if not and I will file a new bug, but inset box-shadows are now displaying completely differently in Firefox than other browsers from version 44. I am on Windows 7.


I have a test case online: http://codepen.io/MattyBalaam/pen/ZQgdmP
Aplogies, I have found this issue mentioned already. https://bugzilla.mozilla.org/show_bug.cgi?id=1227216
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: