HTML's SVG integration story

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

HTML's SVG integration story

Anne van Kesteren-4
Hey,

I've been fixing a few longstanding bugs recently with regards to SVG:

1. Allowing currentScript to return SVGScriptElement:
https://github.com/whatwg/html/commit/6762f878f3080d5c188c3d8a0fcf6ee9ad8b2df4
2. Supporting SVGImageElement in <canvas> and createImageBitmap():
https://github.com/whatwg/html/commit/806874fa426589be159c3c2e8266e00ade80e2e9

Both of these still require work on the SVG side and we should
probably figure out a plan together how to best define SVG script and
image so they reuse the machinery already defined in HTML. If you need
any kind of refactoring to happen on the HTML side we'd be happy to
help.

There's also a proposal to improve the HTML parser to make it easier
to use HTML elements inside SVG which I'd love to get your input on:
https://github.com/whatwg/html/issues/919.

If there's anything else that hasn't been reported yet but needs doing
please let us know, thanks!

Kind regards,


--
https://annevankesteren.nl/

Reply | Threaded
Open this post in threaded view
|

Re: HTML's SVG integration story

Doug Schepers-3
Hi, Anne, Domenic, Simon–

Thanks for this. We'll raise it in our upcoming telcons, and we'd be
quite happy work with you to resolve these. It will be great to have
tighter integration between HTML and SVG.

Regards–
Doug

On 3/24/16 4:32 AM, Anne van Kesteren wrote:

> Hey,
>
> I've been fixing a few longstanding bugs recently with regards to SVG:
>
> 1. Allowing currentScript to return SVGScriptElement:
> https://github.com/whatwg/html/commit/6762f878f3080d5c188c3d8a0fcf6ee9ad8b2df4
> 2. Supporting SVGImageElement in <canvas> and createImageBitmap():
> https://github.com/whatwg/html/commit/806874fa426589be159c3c2e8266e00ade80e2e9
>
> Both of these still require work on the SVG side and we should
> probably figure out a plan together how to best define SVG script and
> image so they reuse the machinery already defined in HTML. If you need
> any kind of refactoring to happen on the HTML side we'd be happy to
> help.
>
> There's also a proposal to improve the HTML parser to make it easier
> to use HTML elements inside SVG which I'd love to get your input on:
> https://github.com/whatwg/html/issues/919.
>
> If there's anything else that hasn't been reported yet but needs doing
> please let us know, thanks!
>
> Kind regards,
>
>