Skip to content
TheChatArchiveThe Chat Archive
gpt-4.1-mini-2025-04-14· OpenAIAi2 WildChat-4.8M (AI2)

outshow many independent weird svgs codes with weird dimensions units and presenting or…

  1. User

    outshow many independent weird svgs codes with weird dimensions units and presenting or missing viewbox properties randomly for testings.

  2. Assistant

    Certainly! Below are 5 independent SVG code snippets with weird dimensions units, some presenting the viewBox, some missing it, designed for testing. Each SVG is weirdly sized or has unusual unit combinations to help test how well rendering engines handle unusual cases.


    SVG 1: Using pt and missing viewBox

    <svg width="120pt" height="80pt" xmlns="http://www.w3.org/2000/svg">
      <circle cx="60" cy="40" r="30" fill="lime" />
    </svg>
    
    • Weird unit: pt (points)
    • Missing viewBox

    SVG 2: Using vw and vh units with viewBox

    <svg width="50vw" height="30vh" viewBox="0 0 200 120" xmlns="http://www.w3.org/2000/svg">
      <rect x="10" y="10" width="180" height="100" fill="orange" />
    </svg>
    
    • Weird units relative to viewport: vw, vh
    • Has viewBox

    SVG 3: Using em units without viewBox

    <svg width="10em" height="6em" xmlns="http://www.w3.org/2000/svg">
      <ellipse cx="50" cy="30" rx="45" ry="15" fill="purple" />
    </svg>
    
    • Units: em (relative to font size)
    • Missing viewBox

    SVG 4: Using percentage % dimensions with viewBox

    <svg width="75%" height="50%" viewBox="0 0 300 200" xmlns="http://www.w3.org/2000/svg">
      <polygon points="150,0 290,200 10,200" fill="teal" />
    </svg>
    
    • Units: % (percentage)
    • Has viewBox

    SVG 5: Mixed units and no viewBox

    <svg width="100mm" height="60cm" xmlns="http://www.w3.org/2000/svg">
      <line x1="0" y1="0" x2="100" y2="60" stroke="red" stroke-width="5" />
    </svg>
    
    • Units mixed: mm for width, cm for height
    • Missing viewBox

    Feel free to copy/paste and test how different SVG renderers handle these irregular dimension units combined with missing/present viewBox. If you want more, let me know!

  3. User

    outshow many independent weird svgs codes with weird dimensions units and presenting or missing viewbox properties randomly for testings.

  4. Assistant

    Sure! Below are 10 independent SVG snippets with weird, unusual, or mixed dimension units and randomly present or missing viewBox attributes for testing purposes. Each snippet is standalone and usable. The units include uncommon ones like in, pc, mixed % and em, viewport units, and more. Some have viewBox, some do not.


    SVG 1: Inches, with viewBox

    <svg width="2in" height="1.5in" viewBox="0 0 200 150" xmlns="http://www.w3.org/2000/svg">
      <circle cx="100" cy="75" r="70" fill="gold" />
    </svg>
    

    SVG 2: Picas (pc), no viewBox

    <svg width="10pc" height="5pc" xmlns="http://www.w3.org/2000/svg">
      <rect x="5" y="3" width="90" height="40" fill="navy" />
    </svg>
    

    SVG 3: Percentage for both width and height, no viewBox

    <svg width="90%" height="50%" xmlns="http://www.w3.org/2000/svg">
      <ellipse cx="150" cy="75" rx="140" ry="60" fill="orchid"/>
    </svg>
    

    SVG 4: Mixed units: em for width, px for height, with viewBox

    <svg width="15em" height="120px" viewBox="0 0 600 120" xmlns="http://www.w3.org/2000/svg">
      <line x1="0" y1="60" x2="600" y2="60" stroke="black" stroke-width="10"/>
    </svg>
    

    SVG 5: vh and vw units, no viewBox

    <svg width="40vw" height="25vh" xmlns="http://www.w3.org/2000/svg">
      <polygon points="0,0 400,0 200,250" fill="tomato"/>
    </svg>
    

    SVG 6: Millimeters and centimeters mixed, with viewBox

    <svg width="100mm" height="60cm" viewBox="0 0 1000 6000" xmlns="http://www.w3.org/2000/svg">
      <rect x="0" y="0" width="1000" height="6000" fill="lightblue"/>
    </svg>
    

    SVG 7: px units only, no viewBox

    <svg width="480px" height="320px" xmlns="http://www.w3.org/2000/svg">
      <circle cx="240" cy="160" r="140" fill="mediumseagreen" />
    </svg>
    

    SVG 8: Mixed unit example (pc width, % height), with viewBox

    <svg width="16pc" height="80%" viewBox="0 0 256 204" xmlns="http://www.w3.org/2000/svg">
      <path d="M128 10 L244 194 H12 Z" fill="olive" />
    </svg>
    

    SVG 9: Ex units (relative to font x-height), no viewBox

    <svg width="30ex" height="15ex" xmlns="http://www.w3.org/2000/svg">
      <rect x="5" y="2" width="120" height="70" fill="coral" />
    </svg>
    

    SVG 10: Mixed viewport units with viewBox

    <svg width="50vw" height="50vh" viewBox="0 0 500 500" xmlns="http://www.w3.org/2000/svg">
      <circle cx="250" cy="250" r="240" fill="purple" />
    </svg>
    

    These should help test rendering and scaling behaviors under odd combinations of SVG attributes and units!

    If you want even weirder cases, or more SVGs, just ask.

  5. User

    outshow many independent weird svgs codes with weird dimensions units and presenting or missing viewbox properties randomly for testings.

  6. Assistant

    Certainly! Here are 15 independent, weird, and diverse SVG code snippets with a variety of unusual dimension units and random presence/absence of the viewBox attribute. Each snippet uses weird or mixed units like pt, in, cm, em, %, vw, vh, pc, ex and randomly includes or omits viewBox. These can be used to test rendering engines, scaling behavior, unit parsing, and viewbox fallback handling.


    SVG 1 (width in pt, no viewBox)

    <svg width="180pt" height="120pt" xmlns="http://www.w3.org/2000/svg">
      <rect x="20" y="20" width="140" height="80" fill="coral"/>
    </svg>
    

    SVG 2 (width in vw, height in vh, with viewBox)

    <svg width="30vw" height="20vh" viewBox="0 0 300 200" xmlns="http://www.w3.org/2000/svg">
      <circle cx="150" cy="100" r="90" fill="lightseagreen"/>
    </svg>
    

    SVG 3 (width and height in %, no viewBox)

    <svg width="60%" height="40%" xmlns="http://www.w3.org/2000/svg">
      <polygon points="10,10 90,10 50,90" fill="slateblue"/>
    </svg>
    

    SVG 4 (width in cm, height in mm, with viewBox)

    <svg width="10cm" height="50mm" viewBox="0 0 400 200" xmlns="http://www.w3.org/2000/svg">
      <ellipse cx="200" cy="100" rx="180" ry="80" fill="goldenrod"/>
    </svg>
    

    SVG 5 (width in em, height in ex, no viewBox)

    <svg width="20em" height="7ex" xmlns="http://www.w3.org/2000/svg">
      <line x1="0" y1="0" x2="200" y2="70" stroke="crimson" stroke-width="4"/>
    </svg>
    

    SVG 6 (pc units, with viewBox)

    <svg width="12pc" height="6pc" viewBox="0 0 144 72" xmlns="http://www.w3.org/2000/svg">
      <rect x="10" y="10" width="124" height="52" fill="mediumorchid"/>
    </svg>
    

    SVG 7 (mixed units: width in pt, height in vh, no viewBox)

    <svg width="200pt" height="15vh" xmlns="http://www.w3.org/2000/svg">
      <circle cx="100" cy="60" r="50" fill="darkorange"/>
    </svg>
    

    SVG 8 (width in in, height in %, with viewBox)

    <svg width="3in" height="80%" viewBox="0 0 300 240" xmlns="http://www.w3.org/2000/svg">
      <path d="M150 10 L290 230 L10 230 Z" fill="cadetblue"/>
    </svg>
    

    SVG 9 (width and height in vw, no viewBox)

    <svg width="45vw" height="30vw" xmlns="http://www.w3.org/2000/svg">
      <rect x="5" y="5" width="430" height="290" fill="#aabbcc"/>
    </svg>
    

    SVG 10 (width in ex, height in em, with viewBox)

    <svg width="35ex" height="15em" viewBox="0 0 350 150" xmlns="http://www.w3.org/2000/svg">
      <circle cx="175" cy="75" r="70" fill="tomato"/>
    </svg>
    

    SVG 11 (mixed weird units: width in mm, height in pc, no viewBox)

    <svg width="90mm" height="8pc" xmlns="http://www.w3.org/2000/svg">
      <rect x="15" y="10" width="160" height="65" fill="seagreen"/>
    </svg>
    

    SVG 12 (width 100%, height 100%, with viewBox)

    <svg width="100%" height="100%" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg">
      <circle cx="200" cy="200" r="150" fill="navy"/>
    </svg>
    

    SVG 13 (width & height in cm mixed with viewBox)

    <svg width="8cm" height="4.5cm" viewBox="0 0 800 450" xmlns="http://www.w3.org/2000/svg">
      <rect x="50" y="25" width="700" height="400" fill="hotpink"/>
    </svg>
    

    SVG 14 (only px units, no viewBox)

    <svg width="320px" height="180px" xmlns="http://www.w3.org/2000/svg">
      <ellipse cx="160" cy="90" rx="140" ry="80" fill="darkcyan"/>
    </svg>
    

    SVG 15 (width in vw, height in %, no viewBox)

    <svg width="40vw" height="60%" xmlns="http://www.w3.org/2000/svg">
      <polygon points="0,0 400,0 200,350" fill="maroon" />
    </svg>
    

    Feel free to copy/paste and put these together for testing SVG dimension parsing, scaling, fallback behavior, and rendering edge cases! Let me know if you'd like more or any other variants.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.