Re: hit testing and retained graphics

On Jul 11, 2011, at 8:52 PM, Robert O'Callahan wrote:

> Doug seems to be proposing a few different things:
> 1) a canvas-like object that reimplements the canvas 2D context API to output an SVG DOM subtree instead
> 2) attaching canvas buffers to SVG elements so you can draw into them as if they're canvases
> 3) some way to get SVG elements into the canvas shadow tree and have them be rendered as well
> 
> I don't understand #3 very well, partly because it's not specified how those elements would participate in rendering. Why not just put the SVG elements over or under the canvas? They'll be rendered and accessible.
> 
> #2 could be addressed by extending SVG stroke and fill values to include arbitrary CSS image values, and using the element() image value to refer to a canvas. I think that feature would be useful in many ways, and I'd be interested in supporting it.
> 
> I think #1 can be quite easily implemented as a JS library. I'm not convinced it would be necessary to provide direct browser support.

Historical note: I believe Dean Jackson actually did #1 within a few weeks of the first Safari release to include Canvas.

Regards,
Maciej

Received on Tuesday, 12 July 2011 08:14:56 UTC