Skip to content

[BUG] animating radius property on feMorphology interpolates the value incorrectly #2779

@jcheese1

Description

@jcheese1

1. Read the FAQs 👇

2. Describe the bug

Give a clear and concise description of what the bug is.

animating the radius property on feMorphology results in the inner engine appending 'px' to it, which is invalid. ex. "4" gets transformed to "4px"

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug

A CodeSandbox minimal reproduction will allow us to quickly follow the reproduction steps. Without one, this bug report won't be accepted.

https://codesandbox.io/p/sandbox/cool-tree-3qh8s8

4. Steps to reproduce

Steps to reproduce the behavior:

  1. hover over the image. radius in not animating correctly.
  2. open devtools, see a bunch of errors like this: Error: <feMorphology> attribute radius: Expected number, "0.70705680607227…".
  3. if you inspect the html, you'll see that its appending 'px' to the animating number.
    CleanShot 2024-08-30 at 15 57 42@2x

5. Expected behavior

A clear and concise description of what you expected to happen.

Expect the value to be reflected "as is" instead of appending "px"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions