#1694 Applying styles from the graph definition for flowcharts

This commit is contained in:
Knut Sveidqvist
2020-09-23 19:51:16 +02:00
parent f856782528
commit ce23316008
4 changed files with 28 additions and 2 deletions

View File

@@ -776,4 +776,16 @@ describe('Flowchart', () => {
expect(svg).to.not.have.attr('style');
});
});
it('58: handle styling with style expressions', () => {
imgSnapshotTest(
`
graph LR
id1(Start)-->id2(Stop)
style id1 fill:#f9f,stroke:#333,stroke-width:4px
style id2 fill:#bbf,stroke:#f66,stroke-width:2px,color:#fff,stroke-dasharray: 5 5
`,
{htmlLabels: true, flowchart: {htmlLabels: true}, securityLevel: 'loose'}
);
});
});