Add crossOrigin to SVGAttributes (#40880)

This commit is contained in:
Michael Hebron
2019-12-09 04:24:39 -08:00
committed by Orta
parent 01ed977216
commit e2f32d245c
2 changed files with 2 additions and 0 deletions

View File

@@ -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;

View File

@@ -26,4 +26,5 @@ const testCases = [
<span autoCorrect="on" />,
<span translate="no" />,
<span translate="yes" />,
<svg><image crossOrigin="anonymous"/></svg>,
];