[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Should texImage2D and texSubImage2D accept more element types?




On 5/31/12 12:37 AM, Gregg Tavares (社用) wrote:
I'm not sure I understand why it's important to support <svg:image>
specifically.

Because we support <html:img> and the HTML and SVG working groups are generally trying to converge the two image elements until they have identical DOM-exposed behavior as much as possible.

Why not support <svg:circle>, <svg:rect>, <svg:text>?

I have no problem with that, in general, but it's an entirely separate issue.

It seems pretty arbitrary that

    <img src="somefile.svg" id="i">
    ctx2d.drawImage(document.getElementById("i"), 0, 0);

works but

    <svg id="i" ...> ... </svg>
    ctx2d.drawImage(document.getElementById("i"), 0, 0);

does not

Sure, but that's completely unrelated to the question of what's supposed to happen with an <svg:image> pointing to a JPEG.

-Boris

-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl
-----------------------------------------------------------