I had a problem setting the shadow for svg with a mask applied to it.
jsfiddle: http://jsfiddle.net/3kxnmhfL/
Below is the code:
.watch-video-svg { width: 50px; height: 50px; } <div class="watch-video-svg"> <svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" height="100%" width="100%" viewBox="0 0 100 100"> <defs> <filter id="shadow"> <feDropShadow dx="4" dy="8" stdDeviation="4"/> </filter> <mask id="cut-off-bottom"> <circle cx="50%" cy="50%" r="50%" fill="white"/> <polygon points="31,20, 31,77, 80,50" fill="black"/> <!-- <rect x="0" y="0" width="200" height="200" fill="url(#Gradient)" /> --> </mask> </defs> <circle cx="50%" cy="50%" r="50%" fill="red" mask="url(#cut-off-bottom)" filter="url(#shadow)" /> </svg> </div> I want the shadow to appear only around the SVG circle and not contain a div.
What could be the reason why the shadow does not appear?