Got it! Here are 30 independent weird SVG snippets, with random weird dimension units in width and height, and viewBox attributes sometimes present with odd values or missing entirely. These are perfect for stress-testing SVG rendering, scaling, and dimension parsing.
1.
<svg width="24ch" height="14ch" xmlns="http://www.w3.org/2000/svg">
<circle cx="60" cy="50" r="45" fill="cyan" />
</svg>
2.
<svg width="30em" height="16em" viewBox="-40 -20 180 90" xmlns="http://www.w3.org/2000/svg">
<rect x="10" y="10" width="120" height="60" fill="orange" />
</svg>
3.
<svg width="90%" height="130%" xmlns="http://www.w3.org/2000/svg">
<ellipse cx="170" cy="110" rx="95" ry="70" fill="purple" />
</svg>
4.
<svg width="28vw" viewBox="15 10 280 120" xmlns="http://www.w3.org/2000/svg">
<polygon points="160,20 200,130 120,130" fill="red" />
</svg>
5.
<svg height="48vh" xmlns="http://www.w3.org/2000/svg">
<line x1="0" y1="0" x2="300" y2="200" stroke="navy" stroke-width="5"/>
</svg>
6.
<svg width="65mm" height="65mm" viewBox="0 0 0.7 0.7" xmlns="http://www.w3.org/2000/svg">
<circle cx="0.35" cy="0.35" r="0.3" fill="lime" />
</svg>
7.
<svg width="220pt" height="110pt" viewBox="0 0 2200 1100" xmlns="http://www.w3.org/2000/svg">
<rect x="1900" y="900" width="280" height="160" fill="fuchsia" />
</svg>
8.
<svg width="2.5in" height="1.25in" xmlns="http://www.w3.org/2000/svg">
<rect x="500" y="500" width="200" height="150" fill="goldenrod" />
</svg>
9.
<svg width="120px" height="25em" viewBox="0 0 80" xmlns="http://www.w3.org/2000/svg">
<circle cx="40" cy="12" r="9" fill="darkmagenta" />
</svg>
10.
<svg viewBox="-110 -130 70 80" xmlns="http://www.w3.org/2000/svg">
<line x1="-110" y1="-130" x2="0" y2="0" stroke="brown" stroke-width="1"/>
</svg>
11.
<svg width="120pc" height="60pc" xmlns="http://www.w3.org/2000/svg">
<rect x="1800" y="1200" width="250" height="130" fill="coral" />
</svg>
12.
<svg width="60ex" height="30ex" viewBox="0 0 600 300" xmlns="http://www.w3.org/2000/svg">
<ellipse cx="300" cy="150" rx="120" ry="70" fill="navy" />
</svg>
13.
<svg width="45vw" height="25vh" viewBox="-220 -130 420 230" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,-60 60,60 -60,60" fill="limegreen" />
</svg>
14.
<svg width="28em" xmlns="http://www.w3.org/2000/svg" viewBox="10 15 220 55">
<circle cx="110" cy="42" r="45" fill="orchid" />
</svg>
15.
<svg width="320%" height="160%" xmlns="http://www.w3.org/2000/svg">
<rect x="35" y="45" width="130" height="65" fill="salmon" />
</svg>
16.
<svg width="24in" height="12in" viewBox="-60 -35 520 280" xmlns="http://www.w3.org/2000/svg">
<line x1="0" y1="0" x2="440" y2="220" stroke="black" stroke-width="3"/>
</svg>
17.
<svg width="70mm" height="35mm" viewBox="0 0 140 70" xmlns="http://www.w3.org/2000/svg">
<rect x="10" y="10" width="120" height="50" fill="#008080" />
</svg>
18.
<svg width="100pt" height="50pt" xmlns="http://www.w3.org/2000/svg">
<circle cx="50" cy="25" r="23" fill="#fab" />
</svg>
19.
<svg width="52em" height="26em" viewBox="-15 -7 130 70" xmlns="http://www.w3.org/2000/svg">
<ellipse cx="55" cy="28" rx="50" ry="22" fill="steelblue" />
</svg>
20.
<svg viewBox="0 0 350 180" xmlns="http://www.w3.org/2000/svg">
<polygon points="175,0 265,180 85,180" fill="deeppink" />
</svg>
21.
<svg width="15pc" height="7.5pc" xmlns="http://www.w3.org/2000/svg">
<circle cx="90" cy="50" r="40" fill="yellowgreen" />
</svg>
22.
<svg width="100ex" height="50ex" viewBox="0 0 1000 500" xmlns="http://www.w3.org/2000/svg">
<rect x="350" y="200" width="300" height="100" fill="indigo" />
</svg>
23.
<svg width="55vw" height="30vh" viewBox="-250 -150 500 320" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,-70 70,70 -70,70" fill="orange" />
</svg>
24.
<svg width="32em" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 80">
<rect x="10" y="10" width="220" height="60" fill="teal" />
</svg>
25.
<svg width="400%" height="200%" xmlns="http://www.w3.org/2000/svg">
<circle cx="60" cy="75" r="55" fill="crimson" />
</svg>
26.
<svg width="20in" height="10in" viewBox="-80 -40 600 320" xmlns="http://www.w3.org/2000/svg">
<line x1="0" y1="0" x2="520" y2="260" stroke="gray" stroke-width="5" />
</svg>
27.
<svg width="85mm" height="40mm" viewBox="0 0 170 80" xmlns="http://www.w3.org/2000/svg">
<ellipse cx="85" cy="40" rx="70" ry="30" fill="#114488" />
</svg>
28.
<svg width="110pt" height="60pt" xmlns="http://www.w3.org/2000/svg">
<rect x="15" y="15" width="80" height="30" fill="#ff8800" />
</svg>
29.
<svg width="60em" height="32em" viewBox="-25 -12 140 75" xmlns="http://www.w3.org/2000/svg">
<ellipse cx="50" cy="30" rx="48" ry="25" fill="#8844aa" />
</svg>
30.
<svg viewBox="0 0 400 200" xmlns="http://www.w3.org/2000/svg">
<polygon points="200,0 310,200 90,200" fill="#55aaff" />
</svg>
Feel free to mix & match or let me know if you want specific behaviors like nested weird units, weird aspect ratios, transforms with weird units, or animated weirdness!