Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can you ELI5 Why?


That's a good question.

On the one hand, the W3C has this listed under new features for SVG 2.0:

"Allowed <paint> values and marker properties to take the child keyword and <child-selector> values to support ID-less referencing."[1]

That would mean you could have multiple inline SVGs on the same web page and avoid potential nameclashes from gradients and/or patterns having the same id.

On the other hand, that same page lists mesh gradients as a feature of SVG 2.0. I vaguely remember on the SVG archive that the browser vendors said they weren't going to implement that.

[1] https://www.w3.org/TR/2018/CR-SVG2-20180807/changes.html


Could you create an SVG viewer custom element? All contents will be independent.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: