React version: 19.2.4
Steps To Reproduce
- use the
maskType prop on an svg
- notice that the rendered mask element does not have the
mask-type property set
and react prints a warning.
Related: #22850
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/mask-type
Link to code example:
https://codesandbox.io/p/sandbox/charming-meninsky-9rc5ln
The current behavior
react renders <mask maskType="..."></mask>, and prints a warning
The expected behavior
react renders <mask mask-type="..."></mask>