I have created a right pointing content box using css clip-path polygon, It works well inside chrome, For firefox I have added Inline SVG, but still it is not working.
Here is work in progress link
Here is the markup and code I used for creating the right pointing content box
HTML :
<svg width="0" height="0">
<defs>
<clipPath id="clip-shape" clipPathUnits="objectBoundingBox">
<polygon points="0 0, 0.95 0, 1 0.5, 0.95 1, 0 1" />
</clipPath>
</defs>
</svg>
<div class="application-content">
<h3>clip-path is not working in firefox</h3>
<p>Hi, I have created a right pointing content box using css clip-path polygon, It works well inside chrome, For firefox I have added Inline SVG, but still it is not working.</p>
</div>
CSS:
.application-content{
width:35%;
-webkit-clip-path: polygon(0% 0%, 95% 0, 100% 50%, 95% 100%, 0% 100%);
clip-path: polygon(0% 0%, 95% 0, 100% 50%, 95% 100%, 0% 100%);
clip-path: url("#clip-shape");
background-color:#f5f5f5;
padding:30px;
}
I don't know, where it is going wrong.
Interesting thing here is, The above code is working when used with jsfiddle or codepen. I am using latest version of wordpress with a custom code theme.
Here is the codepen link