Sets or retrieves a value that indicates the color to paint along the outline of a given graphical element.
stroke: none | currentColor |
[ none | currentColor |
] | inherit
Default. Indicates that no paint is applied.
Indicates that painting is done using the current animated value of the color specified by the color property. This enables sharing of color attributes between parent grammars, such as other, non-SVG, XML. This keyword enables you to define a style in your HTML that sets the color property. The keyword then passes that style to Internet Explorer so that your SVG text will draw in the same color.
Indicates the explicit color to be used to paint the current object.
Internet Explorer 9 supports all the syntax alternatives for the CSS color property. (For a table of colors in CSS, see Color Table.) Internet Explorer 9 also supports the color keyword names recognized by SVG.
Indicates an Internationalized Resource Identifier (IRI) reference to a paint server such as a gradient or a pattern. If the IRI reference is not valid (for example, it points to an object that does not exist or the object is not a valid paint server), the paint method following the funciri (for example, none, currentColor, or color) is used if provided. Otherwise, the document is in error.
Indicates that the property takes the same computed value as the property for the element's parent.
|Applies To||shapes and text content elements|