[whatwg] [canvas] coordinate space definition bogus?
ian at hixie.ch
Thu Jul 18 10:18:40 PDT 2013
On Tue, 29 Jan 2013, Dirk Schulze wrote:
> 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'.
Yeah, that's bogus. I've tried to fix the text.
> 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.
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg