[whatwg] [canvas] coordinate space definition bogus?

Dirk Schulze dschulze at adobe.com
Tue Jan 29 08:53:40 PST 2013


Hi,

I think the definition of "coordinate space" is misleading in the specification.

""
The canvas element has two attributes to control the size of the coordinate space: width and height. 
""

This implies that the coordinate space is limited by this size. This is not the case. The coordinate space can be transformed and scaled all the time. In theory the size of the coordinate space is infinite. But the size of the surface could be defined by 'width' and 'height'.

The same problem occurs with the definition of clipping regions, that by default, depend on the size of the coordinate space. A simple scale and drawing over the size of the 'width' and 'height' values demonstrate that the clipping region can not be measured by the size of the coordinate space (or it could, if it is assumed to be infinite).

For clip, why isn't it possible to just say that clip() does not clip if there is no currentPath? This would at least avoid this trap.

Greetings,
Dirk


More information about the whatwg mailing list