Skip to content

Commit

Permalink
Add crossOrigin to SVGAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
icosahebron committed Dec 6, 2019
1 parent a8a31eb commit 833391a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions types/react/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2259,6 +2259,7 @@ declare namespace React {
// Other HTML properties supported by SVG elements in browsers
role?: string;
tabIndex?: number;
crossOrigin?: "anonymous" | "use-credentials" | "";

// SVG Specific attributes
accentHeight?: number | string;
Expand Down
1 change: 1 addition & 0 deletions types/react/test/elementAttributes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ const testCases = [
<span autoCorrect="on" />,
<span translate="no" />,
<span translate="yes" />,
<svg><image crossOrigin="anonymous"/></svg>,
];

0 comments on commit 833391a

Please sign in to comment.