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

    Sure! Here's a set of 5 independent weird SVG codes for testing purposes.
    Each SVG uses strange or unusual dimension units, and the presence of the viewBox attribute is randomized (some have it, some don't). The dimension units include uncommon CSS units or combinations, intentionally weird values, or missing values to test robustness.


    1. SVG with vh units and missing viewBox

    <svg width="50vh" height="30vh" xmlns="http://www.w3.org/2000/svg">
      <circle cx="25vh" cy="15vh" r="10vh" fill="lime" />
    </svg>
    

    2. SVG with em units and a viewBox

    <svg width="20em" height="10em" viewBox="0 0 200 100" xmlns="http://www.w3.org/2000/svg">
      <rect x="10" y="10" width="180" height="80" fill="orange" />
    </svg>
    

    3. SVG with in units (inches) and missing viewBox

    <svg width="4in" height="3in" xmlns="http://www.w3.org/2000/svg">
      <ellipse cx="2in" cy="1.5in" rx="1.5in" ry="1in" fill="purple" />
    </svg>
    

    4. SVG with mixed percentages and ems and has a viewBox

    <svg width="100%" height="5em" viewBox="0 0 500 50" xmlns="http://www.w3.org/2000/svg">
      <line x1="0" y1="25" x2="500" y2="25" stroke="red" stroke-width="2" />
    </svg>
    

    5. SVG with weird zero or negative dimensions and missing viewBox

    <svg width="0px" height="-100px" xmlns="http://www.w3.org/2000/svg">
      <polygon points="0,0 50,100 100,0" fill="cyan" />
    </svg>
    

    Feel free to ask if you want more or more exotic examples!

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