I have a simple code that produces a rectangle in the canvas. The width of the rectangle is the width of the viewport, and for some reason, the shape produced has a blur on all 4 borders. I attempted to replicate it on jsfiddle but the shape came out sharp and normal.
HTML
<body>
<canvas id="bg_canvas"></canvas>
</body>
Javascript/jQuery
$(document).ready(function(){
// Expand canvas to full viewport size
var vp_width = $(window).width();
var vp_height = $(window).height();
$("#bg_canvas").width(vp_width);
$("#bg_canvas").height(vp_height);
// Canvas Drawing
var canvas = document.getElementById("bg_canvas");
var ctx = canvas.getContext("2d");
ctx.fillStyle = "#cbf7ed";
ctx.fillRect(10,10,vp_width,5);
});