stroke

< svg‎ | attributes
Jump to: navigation, search

stroke

This article is Almost Ready.


W3C Recommendation

Summary

The stroke attribute is a presentation attribute that define the color of the outline of the given graphical element.


Applies to  ?

Syntax

 stroke: none | currentColor | color | funciri [ none | currentColor | color ] | inherit

The default value is none, which means that the outline is not drawn.

Examples

This example shows how to draw a circle with a red stroke and no fill color.

<svg width="400" height="400">
  <circle cx="100" cy="100" r="50" stroke="red" stroke-width="3" fill="none" />
</svg>


Standards information

Related specifications

Specification Status Related Changes
SVG 1.1 W3C Recommendation

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?

See also

Related pages (MSDN)

Reference

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]