9/13/2016

[SVG] Horizontal Line not Visible in Chrome


<line
  x1="10" y1="1"
  x2="90" y2="1.0001" // hack: horizontal line in SVG not visible in Chrome
  stroke="#FF0000"
  strokeWidth="1"/>


One easy way to fix it is just make it not perfectly horizontal. Adding a little bit offset makes it visible.