With SVG, I can get it down to 1 pixel. Yet not with Raphael. Any
idea? See my scripts below:
=== SVG script: it shows a black 1 pixel wide stroke
<?xml version="1.0"?>
<svg xmlns="
http://www.w3.org/2000/svg" version="1.2"
baseProfile="tiny" width="6cm" height="4cm" viewBox="0 0 600 400"
viewport-fill="rgb(255,150,200)">
<line stroke="black" stroke-width="1" x1="100" y1="50" x2="100"
y2="350"/>
</svg>
=== Raphael: it shows a grey two pixel wide stroke
<html>
<head>
<title>Raphael Play</title>
<script type="text/javascript" src="
http://github.com/
DmitryBaranovskiy/raphael/raw/master/raphael-min.js"></script>
<script type="text/javascript">
window.onload = function() {
var paper = new
Raphael(document.getElementById('canvas_container'), 600, 400);
paper.path("M100,50l0,300").attr({stroke: 'black', 'stroke-
width': 1})
paper.path("M200,50l0,300").attr({stroke: 'black', 'stroke-
width': 1, 'vector-effect': 'non-scaling-stroke'})
}
</script>
<style type="text/css">#canvas_container</style>
</head>
<body>
<div id="canvas_container"></div>
</body>
</html>