SVG: markers on polyline are not rendered correctly
Vue version
3.2.37
Link to minimal reproduction
Steps to reproduce
There are no steps needed to reproduce the bug. The wrongly rendered SVG is already visible.
What is expected?
I expect that all markers are on polyline edges.
What is actually happening?
Actually, all markers are shifted away from the polyline edges.
System Info
System:
OS: Linux 5.15 Ubuntu 20.04.4 LTS (Focal Fossa)
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm
Browsers:
Firefox: 103.0
npmPackages:
vue: ^3.2.37 => 3.2.37
Any additional comments?
Same problem occurs with Chromium Version 103.0.5060.134 (Offizieller Build) snap (64-Bit)
.
When using https://vuejs.org/examples/#hello-world without SFC the bug does not appear!
<script type="module">
import { createApp } from 'vue'
createApp().mount('#app')
</script>
<div id="app">
<svg viewBox="0 0 500 220">
<defs>
<marker id="marker" markerWidth="8" markerHeight="8" refx="4" refy="4">
<circle cx="4" cy="4" r="1.5"></circle>
</marker>
</defs>
<polyline points="10,10 40,40 10,70 40,100 10,130 40,160 10,190"></polyline>
</svg>
</div>
<style scoped>
polyline {
stroke: #1a92d3;
stroke-width: 3;
fill: none;
marker-start: url(#marker);
marker-mid: url(#marker);
marker-end: url(#marker);
}
</style>
svg attributes are case sensitive
update to refX and refY
<marker id="marker" markerWidth="8" markerHeight="8" refX="4" refY="4">