Debian Codegraph @

testsuite/svg/renderer/nested-svg-viewbox.svg

raw symbols SCIP
1 <svg xmlns="http://www.w3.org/2000/svg" width="300" height="200">
2 <!-- Nested svg with different viewBox values -->
3 <svg x="0" y="0" width="100" height="100" viewBox="0 0 200 200">
4 <rect x="50" y="50" width="100" height="100" fill="red"/>
5 </svg>
6
7 <!-- Nested svg with viewBox offset -->
8 <svg x="100" y="0" width="100" height="100" viewBox="50 50 100 100">
9 <rect x="50" y="50" width="100" height="100" fill="blue"/>
10 </svg>
11
12 <!-- Nested svg with negative viewBox -->
13 <svg x="200" y="0" width="100" height="100" viewBox="-50 -50 100 100">
14 <circle cx="0" cy="0" r="30" fill="green"/>
15 </svg>
16
17 <!-- Nested svg without explicit width/height but with viewBox -->
18 <svg x="0" y="100" viewBox="0 0 50 50">
19 <rect x="0" y="0" width="50" height="50" fill="yellow"/>
20 </svg>
21 </svg>