CSS Filter: drop-shadow() is clipped and has artefacts when element is partially or totally hidden
Categories
(Core :: Graphics: WebRender, defect, P3)
Tracking
()
People
(Reporter: b.houdusse, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
Steps to reproduce:
Apply a CSS drop-shadow() filter to an element partially or totally hidden (either by moving it offscreen or by hiding its parent overflow).
A test case is available here: https://codepen.io/chototoro/pen/xxGJOpj
Actual results:
The generated shadow is clipped based on the element remaining visible pixels. The part of the shadow that is missing is replaced by artefacts which seem to repeat the element last visible pixels.
This might be partially related to this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1561447
Expected results:
The generated shadow should be based on the element full shape, wether its hidden or not.
Behavior is normal on Chrome and Edge 79+
Safari 12+ has a similar bug: https://bugs.webkit.org/show_bug.cgi?id=207123
![]() |
||
Updated•5 years ago
|
Comment 1•5 years ago
•
|
||
Nical, I saw that you have done some work with drop shadows. Any idea what's going on here?
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Indeed this is the same as bug 1617050
Description
•