Sure! Below are 10 independent SVG code snippets designed with weird/non-standard dimension units and randomly included or missing viewBox properties . These will be useful for testing how different SVG renderers handle unusual setups.
1. SVG with pt units and no viewBox
svg Copy code
<svg width="300pt" height="150pt" xmlns="http://www.w3.org/2000/svg">
<rect x="10" y="10" width="100" height="50" fill="teal" />
</svg>
2. SVG with vw and vh units and viewBox present
svg Copy code
<svg width="50vw" height="30vh" viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg">
<circle cx="100" cy="50" r="40" fill="purple" />
</svg>
3. SVG with em units, no viewBox
svg Copy code
<svg width="20em" height="10em" xmlns="http://www.w3.org/2000/svg">
<ellipse cx="40" cy="25" rx="30" ry="15" fill="orange" />
</svg>
4. SVG with % units and viewBox
svg Copy code
<svg width="100%" height="50%" viewBox="0 0 400 200" xmlns="http://www.w3.org/2000/svg">
<line x1="0" y1="0" x2="400" y2="200" stroke="red" stroke-width="5"/>
</svg>
5. SVG with cm units, missing viewBox
svg Copy code
<svg width="10cm" height="5cm" xmlns="http://www.w3.org/2000/svg">
<polygon points="10,40 50,10 90,40 90,80 50,110 10,80" fill="lime" stroke="purple" stroke-width="5"/>
</svg>
6. SVG with mixed units and viewBox
svg Copy code
<svg width="250px" height="15em" viewBox="0 0 500 300" xmlns="http://www.w3.org/2000/svg">
<text x="250" y="150" font-size="48" text-anchor="middle" fill="navy">Test</text>
</svg>
7. SVG with mm units, no viewBox
svg Copy code
<svg width="100mm" height="50mm" xmlns="http://www.w3.org/2000/svg">
<rect x="20" y="10" width="60" height="30" fill="cyan" />
</svg>
8. SVG with in units and viewBox
svg Copy code
<svg width="4in" height="2in" viewBox="0 0 400 200" xmlns="http://www.w3.org/2000/svg">
<circle cx="200" cy="100" r="80" fill="pink"/>
</svg>
9. SVG without width/height but with viewBox
svg Copy code
<svg viewBox="0 0 120 80" xmlns="http://www.w3.org/2000/svg">
<rect x="10" y="10" width="100" height="60" fill="brown" />
</svg>
10. SVG with unusual ex units and no viewBox
svg Copy code
<svg width="30ex" height="15ex" xmlns="http://www.w3.org/2000/svg">
<text x="5" y="12" font-size="14" fill="black">Ex unit test</text>
</svg>
You can embed these independently in HTML or load them in SVG viewers to see how dimensions and view boxes affect rendering with unusual sizing units. Let me know if you want more or variants!