mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Add crossOrigin to SVGAttributes (#40880)
This commit is contained in:
1
types/react/index.d.ts
vendored
1
types/react/index.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -26,4 +26,5 @@ const testCases = [
|
||||
<span autoCorrect="on" />,
|
||||
<span translate="no" />,
|
||||
<span translate="yes" />,
|
||||
<svg><image crossOrigin="anonymous"/></svg>,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user