I'm trying to implement a "marching ants" style animated selection box using svg. The scheme of animating the border's dash pattern seems to work great, except for some reason I can't get true black/true white for the colors.
(Using ff 68.0.2 64-bit, in case that matters)
<svg height="110" width="200">
<circle cx="100" cy="50" r="40" stroke="black" stroke-width="3" fill="red" /> <!-- for sample overlay -->
<g fill="none" stroke="#000000" stroke-width="1">
<path id="solid" stroke-dasharray="" d="M5 40 l215 0" />
</g>
<g fill="none" stroke="#ffffff" stroke-width="1">
<path stroke-dasharray="4,8,4,0" d="M5 40 l215 0" />
</g>
<rect x="1" y="1" width="100" height="100" style="fill:rgba(0,0,0,0);stroke-width:1;stroke:rgb(0,0,0)"/>
<rect x="1" y="1" id="ants" width="100" height="100" stroke-dasharray="4,8,4,0" style="fill:rgba(0,0,0,0);stroke-width:1;stroke:#ffffff"/>
Sorry, your browser does not support inline SVG.
</svg>