[svgwg] New element that prevents the creation of a DOM and treats contents as drawing instructions (#860)

LeaVerou has just created a new issue for https://github.com/w3c/svgwg:

== New element that prevents the creation of a DOM and treats contents as drawing instructions ==
This started from [this tweet](https://twitter.com/LeaVerou/status/1412792247008043008)

Today, there are many use cases that SVG's performance is prohibitive for. Instead, authors are instructed to switch to `<canvas>`, an entirely different drawing paradigm. The main cause of this is that in SVG every drawing instruction creates a DOM to accommodate potential future manipulation, and CSS styling. However, often this DOM is not really needed or utilized.

What if we could mark parts of an SVG document as "these are just drawing instructions, do not generate a DOM here" to achieve canvas-like performance, while still be able to combine it with other elements that *do* require a DOM? Also, this way authors would be able to use the same API regardless of the type of graphics they need to create, not switch to an entirely different API because the number of drawing instructions crossed a certain threshold. 

Thoughts?

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/860 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 7 July 2021 18:02:03 UTC