Skip to content

Commit

Permalink
Revert "Merge pull request facebook#5736 from gaearon/document-svg-pa…
Browse files Browse the repository at this point in the history
…ssthrough"

This reverts commit 713401f, reversing
changes made to 53dabe7.
  • Loading branch information
zpao committed Mar 11, 2016
1 parent 2326d1a commit 0229f48
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions docs/docs/ref-04-tags-and-attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ There is also the React-specific attribute `dangerouslySetInnerHTML` ([more here

This comment has been minimized.

Copy link
@ronald11126

ronald11126 Mar 14, 2016

Lp

### SVG Attributes

Any attributes passed to SVG tags are passed through without changes.

React used to support special camelCase aliases for certain SVG attributes, such as `clipPath`. If you use them now you'll see a deprecation warning. These aliases will be removed in the next version in favor of their real names from the SVG specification, such as `clip-path`. Attributes that have a camelCase name in the spec, such as `gradientTransform`, will keep their names.
```
clipPath cx cy d dx dy fill fillOpacity fontFamily
fontSize fx fy gradientTransform gradientUnits markerEnd
markerMid markerStart offset opacity patternContentUnits
patternUnits points preserveAspectRatio r rx ry spreadMethod
stopColor stopOpacity stroke strokeDasharray strokeLinecap
strokeOpacity strokeWidth textAnchor transform version
viewBox x1 x2 x xlinkActuate xlinkArcrole xlinkHref xlinkRole
xlinkShow xlinkTitle xlinkType xmlBase xmlLang xmlSpace y1 y2 y
```

0 comments on commit 0229f48

Please sign in to comment.