1

The below does not work in IE9 if the canvas has display:table applied to it.

var canvas1 = $("#canvas1")[0];
var context1 = canvas1.getContext('2d');
var background = $("#background")[0];
context1.drawImage(background, 0, 0);

http://jsfiddle.net/V92Gn/1353/

Is this a known issue? Are there any workarounds (other than using a different display).

Kenneth Ito
  • 5,201
  • 2
  • 25
  • 44
  • On the other hand, why would you ever apply `display: table` to a ``? – Ry- May 05 '14 at 22:16
  • @minitech For positioning? http://stackoverflow.com/questions/114543/how-to-center-a-div-in-a-div-horizontally – Kenneth Ito May 05 '14 at 22:20
  • Since it’s a ``, it has a fixed width; you can just give it `display: block` and `margin: 0 auto`. – Ry- May 05 '14 at 22:37

0 Answers0