Skip to content

<foreignObject> doesn't seem to have the same result in Safari/Firefox as it does in Chrome browsers #220

Open
@francisngo

Description

@francisngo

For foreignObject in Safari browsers, nodes are given additional width and height and the tree links are not positioned in the correct place as they are in Chrome browsers. Similar with Firefox, styling from foreignObjectWrappers are not applied.

Are you reporting a bug, or opening a feature request?

Bug

What is the actual behavior/output?

foreignObject's width/height and positions in Safari are not equal to Chrome.

What is the behavior/output you expect?

foreignObject's and tree link's positions are off and not accurate.

Can you consistently reproduce the issue/create a reproduction case (e.g. on https://codesandbox.io)?

View link in chrome then in safari and firefox to see the difference: https://codesandbox.io/s/0362k66m0n

What version of react-d3-tree are you using?

latest version

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions