[whatwg] Using SVG instead of Canvas for extensions
Robert O'Callahan
robert at ocallahan.org
Wed Jan 18 19:47:52 PST 2012
On Thu, Jan 19, 2012 at 4:30 PM, Elliott Sprehn <esprehn at gmail.com> wrote:
> Gecko completely punts rendering foreignObject to a canvas
>
I don't think it does. See
http://robert.ocallahan.org/2011/11/drawing-dom-content-to-canvas.html and
http://people.mozilla.org/~roc/rendering-HTML-elements-to-canvas.html. The
demo works fine for me in Gecko.
while Webkit will let you do fun things like render a browser native
> control (ex. <button>) to a canvas by embedding it into SVG.
>
Rendering controls works in Gecko too. We disable platform-specific theming
of the controls as a conservative measure.
Rob
--
"If we claim to be without sin, we deceive ourselves and the truth is not
in us. If we confess our sins, he is faithful and just and will forgive us
our sins and purify us from all unrighteousness. If we claim we have not
sinned, we make him out to be a liar and his word is not in us." [1 John
1:8-10]
More information about the whatwg
mailing list