Duh. Width and height properties for canvas elements are not styles.