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

SVG global attribute "type" is wrong #1957

Closed
1 of 3 tasks
fdgStilla opened this issue Feb 21, 2024 · 0 comments · Fixed by #1958
Closed
1 of 3 tasks

SVG global attribute "type" is wrong #1957

fdgStilla opened this issue Feb 21, 2024 · 0 comments · Fixed by #1958

Comments

@fdgStilla
Copy link
Contributor

Problem
Try to create a svg filter:

svg {
    filter {
        id: "gamma_filter",
        feComponentTransfer {
            feFuncR {
                r#type: "linear",
                slope: "0.5",
                intercept: "0.5"
            }
        }
    }
}

=> the resulting dom is

<svg><filter id="gamma_filter"><feComponentTransfer><feFuncR _type="linear" slope="0.5" intercept="0.5"></feFuncR></feComponentTransfer></filter></svg>

The filter does not work because _type attribute does not exist, it should be type

Environment:

  • Dioxus version: [0.4.3]
  • Rust version: [1.76.0]
  • OS info: [Windows 10]
  • App platform: [`desktop]

Questionnaire

  • I'm interested in fixing this myself but don't know where to start
  • I would like to fix and I have a solution
  • I don't have time to fix this right now, but maybe later
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant