HTML5: rects and ellipses work when drawn backwards

Rects and ellipses would not work if drawn from right to left and/or from
bottom to top, but now they work.