Arrow to a subgraph, which contains a child node with an arrow going out of the subgraph, sometimes faces the wrong direction #5739
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
If you have a flowchart with three nodes, one contained in a subgraph, and:
Sometimes, depending on the size of the node inside the subgraph, the first arrow's head will point the wrong direction
Steps to reproduce
c
's display name and see that the arrow changes its directionScreenshots
Buggy example rendered incorrectly in Firefox (twenty
0
characters):Non-buggy examples rendered in Firefox (19 and 21
0
characters):Buggy example rendered correctly in Safari (twenty
0
characters):Code Sample
Setup
Suggested Solutions
No response
Additional Context
The bug only appears on Firefox, but it's because the generated markup is different. On Firefox the problematic arrow is
but on Safari and Chrome it's
If I replace the markup in Firefox with the one used in Safari or Chrome, it's rendered correctly -- so it is not Firefox rendering the SVG wrong, but Mermaid generating different SVG in Firefox than in other browsers.
I believe every element of the sample document is necessary to trigger this bug:
a
's arrow must point tob
instead ofc
c
must be inside a subgraphd
must not be inside the subgraphc
is inThe text was updated successfully, but these errors were encountered: