SVG/Attribut/color

Aus SELFHTML-Wiki
< SVG‎ | Attribut
Wechseln zu: Navigation, Suche

Das color-Präsentationsattribut liefert einen indirekten Wert (currentColor), der dann in fill, stroke, stop-color, flood-color and lighting-color verwendet werden kann.

Erlaubte Werte
Standardwert

je nach User-Agent

anwendbar auf
Präsentationsattribut

ja

mit CSS animierbar

ja

Beispiel
  <g color="green">
    <rect width="50" height="50" fill="currentcolor" />
    <circle
      r="25"
      cx="70"
      cy="70"
      stroke="currentcolor"
      fill="none"
      stroke-width="5" />
  </g>


Siehe auch

Weblinks