tsenapathy
tsenapathy

Reputation: 6194

Does the HTML5 canvas rendering a browser dependent?

If 2 browsers are said to be HTML5 canvas standard compliant, will there be any rendering difference between them ?. Say I'm drawing a shape in browser 1 and 2, will the pixel by pixel comparison be equal.

Upvotes: 2

Views: 190

Answers (1)

Brian Nickel
Brian Nickel

Reputation: 27550

The spec doesn't go into as far of detail to guarantee pixel by pixel perfection. Browsers use very different rendering libraries, and IE and Opera even offload to the GPU, so difference in implementation will undoubtedly have subtile differences in pixel shading or even some slight alignment for lines and curves. I'm sure fonts add their own complexity.

That said, In my experience, I haven't seen any major differences that weren't attributable to missing features or bugs.

Upvotes: 1

Related Questions