Debian Codegraph @

testsuite/svg/renderer/non-scaling-stroke.svg

raw symbols SCIP
1 <svg width='600' height='400' viewBox='0 0 400 400' preserveAspectRatio='none'
2 xmlns='http://www.w3.org/2000/svg'>
3 <!-- Normal Rectangle: Stroke scales with zoom -->
4 <linearGradient id='gradient' x1='0' y1='0' x2='1' y2='1'>
5 <stop offset='0' stop-color='red'/>
6 <stop offset='0.5' stop-color='yellow'/>
7 <stop offset='1' stop-color='green'/>
8 </linearGradient>
9 <rect x='0%' y='0%' width='100%' height='100%' fill='black'/>
10
11 <rect x="20" y="20" width="80" height="60" stroke="blue" stroke-width="3" fill="none"/>
12
13 <!-- Scaled Rectangle: Stroke becomes very thick -->
14 <rect transform="translate(120,0) scale(3)" x="20" y="20" width="30" height="10" stroke="red" stroke-width="3" fill="none"/>
15
16 <!-- Non-Scaling Rectangle: Stroke stays 3px even when scaled -->
17 <rect vector-effect="non-scaling-stroke" transform="translate(150,0) scale(3)" x="20" y="20" width="18" height="20" stroke="url(#gradient) green" stroke-width="1" fill="none"/>
18 </svg>