box-shadow 'ed div incorrect when composited
Reported by
dopl...@gmail.com,
Aug 27 2016
|
||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.80 Safari/537.36 Steps to reproduce the problem: Check jsbin https://jsbin.com/tohadob/edit?html,output and hover on the left div. What is the expected behavior? What went wrong? Animation "snaps" at the end, effectively changing the applied box-shadow. Also, even though the animation is only applied on the y-axis, you can see the shadow also grows on the x-axis by the end of it. Additionally and even more strangely, the div that's not affected by the animation casts a different shadow during it. Did this work before? N/A Chrome version: 53.0.2785.80 Channel: beta OS Version: OS X 10.11.6 Flash Version: Shockwave Flash 22.0 r0 Firefox does this right. Safari is way worse though. As an additional comment, unrelated to the bug, I am trying to reproduce this animation as a transform because of the performance gain I would get avoiding to animate the height property. The thing is, using transform, the scaling also affects the shadow, while I'd it rather not. If you can chime in with some suggestion to avoid this, that would be great!
,
Aug 29 2016
,
Aug 29 2016
Thanks for the report. Able to reproduce the issue on Win10, Mac OS X10.11.6, Ubuntu 14.04 using Chrome stable 52.0.2743.116, Beta 53.0.2785.80, Dev 54.0.2837.0 and Canary 55.0.2843.0 Not a regression, issue existing from M39 #39.0.2127.0 (Official Build 290172) Note: Prior to M39 builds that animation is not working.
,
Aug 29 2016
,
Aug 31 2016
Looks like we're painting differently when the boxes are composited. This seems like a painting bug where we're getting the geometry wrong.
,
Sep 2 2016
Indeed, the shadows are painting incorrectly in the composited path.
,
Sep 4 2017
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Sep 5 2017
Reduced test case.
,
Sep 5
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Sep 5
Looking at the layers in DevTools, we seem to be enlarging them by a percentage size, even though the shadow size is absolute. Might be easy to fix this. |
||||||||||
►
Sign in to add a comment |
||||||||||
Comment 1 by dopl...@gmail.com
, Aug 27 2016