Hi,

The methods addText() and addPathByStrokingText() [1] take the 
NoInterfaceObject CanvasDrawingStyle [2] as argument. I wonder if that is even 
possible for WebIDL since there is no way to create it and no binding to 
ECMAScript is exposed. Shouldn't it rather be a DrawingStyle object[3], which 
indeed is an interface? I didn't scan if that is the case in other places as 
well. The definition of NoInterfaceObject is here [4].

Greetings,
Dirk

[1] 
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-path-addpathbystrokingtext
[2] 
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#canvasdrawingstyles
[3] 
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#drawingstyle
[4] http://www.w3.org/TR/WebIDL/#NoInterfaceObject

Reply via email to