Back to Interop 2027 proposals
Targeted SVG interop improvements
I proposed a general SVG focus area two years ago and it got some interest but the feedback was that it was too big and unfocused. This year I want to try again with a more scoped proposal with specific areas we have reason to believe are significant pain points for devs.
- Allow omission of fragment when using SVG
<use> - Support
context-fillandcontext-stroketo make SVGs more easily themeable (reuse context colors in<marker>and<use>elements) - SVG filters
- Proposed for Interop 25 https://github.com/web-platform-tests/interop/issues/756 got 52 👍🏻.
- They allow devs to achieve a lot of effects that otherwise involve content duplication or using external images or JS.
- Spec: https://drafts.csswg.org/filter-effects-1/
- WPT: https://wpt.fyi/results/css/filter-effects?label=master&label=experimental&aligned&q=%21backdrop-filter
getPathData()/setPathData()/getPathSegmentAtLength()/SVGPathElement- These grant web developers working with SVG paths a programmatic way to inspect or manipulate individual path segments. Today devs rely on polyfills for this, like this one that has 130 stars: https://github.com/jarek-foksa/path-data-polyfill. The crbug asking for this has positive dev feedback and 44 +1s.
- Spec: https://w3c.github.io/svgwg/specs/paths/#DOMInterfaces
- WPT: https://wpt.fyi/results/svg/path/interfaces?label=experimental&label=master&aligned
Discussion on GitHub (2)
@dandclark We should avoid to link to https://www.w3.org/TR/SVG2/ for now, as it is not up to date yet. It will be soon. The SVG WG is planning to republish the spec very soon.
The same for
https://svgwg.org/svg2-draft/where the SVGWG has lost the control. The document is not at all updated.The current spec is at https://w3c.github.io/svgwg/svg2-draft/
Thanks @karlcow, I edited the post.