Debian Codegraph @

testsuite/svg/renderer/nested-svg-positioning.svg

raw symbols SCIP
1 <svg xmlns="http://www.w3.org/2000/svg" width="300" height="300">
2 <!-- Nested svg with percentage x, y -->
3 <svg x="10%" y="10%" width="50" height="50">
4 <rect x="0" y="0" width="50" height="50" fill="red"/>
5 </svg>
6
7 <!-- Nested svg with percentage width, height -->
8 <svg x="100" y="30" width="20%" height="20%">
9 <rect x="0" y="0" width="100" height="100" fill="blue"/>
10 </svg>
11
12 <!-- Nested svg with mixed units -->
13 <svg x="50" y="100" width="80" height="60">
14 <rect x="5" y="5" width="70" height="50" fill="green"/>
15 </svg>
16
17 <!-- Nested svg with zero x, y -->
18 <svg x="0" y="0" width="40" height="40">
19 <circle cx="20" cy="20" r="15" fill="yellow"/>
20 </svg>
21
22 <!-- Nested svg with negative x, y -->
23 <svg x="-10" y="-10" width="60" height="60">
24 <rect x="10" y="10" width="40" height="40" fill="purple"/>
25 </svg>
26
27 <!-- Multiple nested svgs in a row -->
28 <svg x="10" y="200" width="40" height="40">
29 <rect width="40" height="40" fill="orange"/>
30 </svg>
31 <svg x="60" y="200" width="40" height="40">
32 <rect width="40" height="40" fill="pink"/>
33 </svg>
34 <svg x="110" y="200" width="40" height="40">
35 <rect width="40" height="40" fill="cyan"/>
36 </svg>
37 </svg>