Below are 2 50x50 pixel canvas but using CSS to display them at 100x100 pixels.
They are solid black with a red triangle
They each have a 10px CSS solid black border around them.
Depending on how the browser composites the canvas with the page they will get
a white outline
2d canvas
3d canvas
img tag