Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React does not recognize the maskType prop on a DOM element #22850

Closed
zprjk opened this issue Dec 1, 2021 · 2 comments
Closed

React does not recognize the maskType prop on a DOM element #22850

zprjk opened this issue Dec 1, 2021 · 2 comments
Labels
Component: DOM Resolution: Needs More Information Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@zprjk
Copy link

zprjk commented Dec 1, 2021

React version: 17

Steps To Reproduce

  1. Create a Inline SVG with a mask
  2. Use maskType as a svg attribute in the said mask
  3. Check React warning in console.

Link to code example:

https://codesandbox.io/s/react-does-not-recognize-the-masktype-6r344

Related discussion: gregberge/svgr#643
https://www.w3.org/TR/css-masking-1/#propdef-mask-type

@zprjk zprjk added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Dec 1, 2021
@eps1lon
Copy link
Collaborator

eps1lon commented Dec 1, 2021

Thanks for the report.

I couldn't find any mention of a masktype attribute. The only mention I could find is the maskType CSS property which is not necessarily set via props as far as I know but styles.

Could you clarify where this attribute is specified or which browsers implement it?

@zprjk
Copy link
Author

zprjk commented Dec 6, 2021

Hey @eps1lon . I think you are right. Closing this one.

(I'll continue the follow up in the other thread that's not related to React, over here: gregberge/svgr#643 (comment))

@zprjk zprjk closed this as completed Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: DOM Resolution: Needs More Information Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

2 participants