Skip to content

Bug: React does not recognize the maskType prop on a DOM element. #35920

@sadan4

Description

@sadan4

React version: 19.2.4

Steps To Reproduce

  1. use the maskType prop on an svg
  2. 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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions