diff --git a/echosvg-test/src/test/java/io/sf/carte/echosvg/test/svg/AbstractBypassRenderingCheck.java b/echosvg-test/src/test/java/io/sf/carte/echosvg/test/svg/AbstractBypassRenderingCheck.java index d3ec64f15..5e094e615 100644 --- a/echosvg-test/src/test/java/io/sf/carte/echosvg/test/svg/AbstractBypassRenderingCheck.java +++ b/echosvg-test/src/test/java/io/sf/carte/echosvg/test/svg/AbstractBypassRenderingCheck.java @@ -61,7 +61,7 @@ void test(String file) throws TranscoderException, IOException { } void test(String file, int expectedErrorCount) throws TranscoderException, IOException { - test(file, SVGRenderingAccuracyTest.DEFAULT_MEDIUM, false, null, true, expectedErrorCount); + test(file, SVGRenderingAccuracyTest.DEFAULT_MEDIUM, false, null, null, true, expectedErrorCount); } /** @@ -74,7 +74,7 @@ void test(String file, int expectedErrorCount) throws TranscoderException, IOExc */ void testPrint(String file, int expectedErrorCount) throws TranscoderException, IOException { - test(file, PRINT_MEDIUM, false, null, true, expectedErrorCount); + test(file, PRINT_MEDIUM, false, null, null, true, expectedErrorCount); } /** @@ -87,7 +87,7 @@ void testPrint(String file, int expectedErrorCount) */ void testDark(String file, int expectedErrorCount) throws TranscoderException, IOException { - test(file, SVGRenderingAccuracyTest.DEFAULT_MEDIUM, true, null, true, expectedErrorCount); + test(file, SVGRenderingAccuracyTest.DEFAULT_MEDIUM, true, null, null, true, expectedErrorCount); } /** @@ -112,7 +112,23 @@ void testNV(String file) */ void testNV(String file, int expectedErrorCount) throws TranscoderException, IOException { - test(file, SVGRenderingAccuracyTest.DEFAULT_MEDIUM, false, null, false, expectedErrorCount); + test(file, SVGRenderingAccuracyTest.DEFAULT_MEDIUM, false, null, null, false, expectedErrorCount); + } + + /** + * A non-validating test. + * + * @param file the SVG file to test. + * @param expectedErrorCount the expected error count. + * @param backgroundColor the background color, or {@code null} if + * transparent. + * @throws TranscoderException + * @throws IOException + */ + void testNV(String file, int expectedErrorCount, Color backgroundColor) throws TranscoderException, + IOException { + test(file, SVGRenderingAccuracyTest.DEFAULT_MEDIUM, false, backgroundColor, null, false, + expectedErrorCount); } float getBelowThresholdAllowed() { @@ -204,15 +220,16 @@ void testUserSheet(String file, boolean validating, int expectedErrorCount) * @throws TranscoderException * @throws IOException */ - void test(String file, String medium, boolean darkMode, String selector, + void test(String file, String medium, boolean darkMode, Color backgroundColor, String selector, boolean validating, int expectedErrorCount) throws TranscoderException, IOException { BypassRenderingTest runner = new BypassRenderingTest(medium, expectedErrorCount); - configureAndRun(runner, file, darkMode, selector, validating); + configureAndRun(runner, file, darkMode, backgroundColor, selector, validating); } - void configureAndRun(BypassRenderingTest runner, String file, boolean darkMode, + void configureAndRun(BypassRenderingTest runner, String file, boolean darkMode, Color backgroundColor, String selector, boolean validating) throws TranscoderException, IOException { runner.setDarkMode(darkMode); + runner.setBackgroundColor(backgroundColor); runner.setSelector(selector); runner.setValidating(validating); runner.setFile(file); @@ -232,34 +249,36 @@ void configureAndRun(BypassRenderingTest runner, String file, boolean darkMode, * @param medium the target medium ({@code screen}, {@code print}, * etc). * @param darkMode if true, dark mode is enabled in CSS. + * @param backgroundColor the background color, or {@code null} if + * transparent. * @param selector the selector to find the SVG element. * @param validating if true, the SVG is validated. * @param expectedErrorCount the expected number of errors. * @throws TranscoderException * @throws IOException */ - void testAllInputSources(String file, String medium, boolean darkMode, + void testAllInputSources(String file, String medium, boolean darkMode, Color backgroundColor, String selector, boolean validating, int expectedErrorCount) throws TranscoderException, IOException { BypassRenderingTest runner = new BypassRenderingTest(medium, expectedErrorCount); - configureAndRun(runner, file, darkMode, selector, validating); + configureAndRun(runner, file, darkMode, backgroundColor, selector, validating); Document doc = runner.getRenderDocument(); runner = new DocumentInputHelperRenderingTest(medium, expectedErrorCount); runner.setRenderDocument(doc); - configureAndRun(runner, file, darkMode, selector, validating); + configureAndRun(runner, file, darkMode, backgroundColor, selector, validating); runner = new TIDocumentInputHelperRenderingTest(medium, expectedErrorCount); runner.setRenderDocument(doc); - configureAndRun(runner, file, darkMode, selector, validating); + configureAndRun(runner, file, darkMode, backgroundColor, selector, validating); runner = new TIInputStreamHelperRenderingTest(medium, expectedErrorCount); - configureAndRun(runner, file, darkMode, selector, validating); + configureAndRun(runner, file, darkMode, backgroundColor, selector, validating); runner = new TIReaderInputHelperRenderingTest(medium, expectedErrorCount); - configureAndRun(runner, file, darkMode, selector, validating); + configureAndRun(runner, file, darkMode, backgroundColor, selector, validating); runner = new TIURIInputHelperRenderingTest(medium, expectedErrorCount); - configureAndRun(runner, file, darkMode, selector, validating); + configureAndRun(runner, file, darkMode, backgroundColor, selector, validating); } private class BypassRenderingTest extends RenderingTest { @@ -271,6 +290,8 @@ private class BypassRenderingTest extends RenderingTest { */ private boolean darkMode = false; + private Color backgroundColor; + /** * Selector to locate SVG element */ @@ -294,6 +315,10 @@ private class BypassRenderingTest extends RenderingTest { setMedia(medium); } + public void setBackgroundColor(Color backgroundColor) { + this.backgroundColor = backgroundColor; + } + /** * Enables or disables dark mode. * @@ -348,6 +373,9 @@ protected void encode(URL srcURL, FileOutputStream fos) // Opaque background for dark mode transcoder.addTranscodingHint(ImageTranscoder.KEY_BACKGROUND_COLOR, new Color(0, 0, 0, 255)); + } else if (backgroundColor != null) { + transcoder.addTranscodingHint(ImageTranscoder.KEY_BACKGROUND_COLOR, + backgroundColor); } TranscoderOutput dst = new TranscoderOutput(fos); diff --git a/echosvg-test/src/test/java/io/sf/carte/echosvg/test/svg/MermaidRenderingTest.java b/echosvg-test/src/test/java/io/sf/carte/echosvg/test/svg/MermaidRenderingTest.java index 3c99c7334..47e8ec950 100644 --- a/echosvg-test/src/test/java/io/sf/carte/echosvg/test/svg/MermaidRenderingTest.java +++ b/echosvg-test/src/test/java/io/sf/carte/echosvg/test/svg/MermaidRenderingTest.java @@ -18,6 +18,7 @@ */ package io.sf.carte.echosvg.test.svg; +import java.awt.Color; import java.io.IOException; import org.junit.jupiter.api.BeforeAll; @@ -36,6 +37,30 @@ */ public class MermaidRenderingTest extends AbstractBypassRenderingCheck { + /** + * A standard Mermaid test. + * + * @param file the SVG file to test. + * @throws TranscoderException + * @throws IOException + */ + void testMermaid(String file) throws TranscoderException, IOException { + testMermaid(file, 0); + } + + /** + * A standard Mermaid test, with an expected error count. + * + * @param file the SVG file to test. + * @param expectedErrorCount the expected error count. + * @throws TranscoderException + * @throws IOException + */ + void testMermaid(String file, int expectedErrorCount) throws TranscoderException, IOException { + test(file, SVGRenderingAccuracyTest.DEFAULT_MEDIUM, false, Color.white, null, false, + expectedErrorCount); + } + @BeforeAll public static void setUpBeforeClass() throws Exception { TestFonts.loadTestFonts(); @@ -43,148 +68,148 @@ public static void setUpBeforeClass() throws Exception { @Test public void testMermaid() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid.svg"); } @Test public void testWebsiteDiagram93() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-93.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid-93.svg"); } @Disabled @Test public void testBlock() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-block.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid-block.svg"); } @Test public void testC4Context() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-c4-context.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid-c4-context.svg"); } @Test public void testC4Component() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-c4-component.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid-c4-component.svg"); } @Test public void testC4Container() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-c4-container.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid-c4-container.svg"); } @Test public void testC4Deployment() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-c4-deployment.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid-c4-deployment.svg"); } @Test public void testC4Dynamic() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-c4-dynamic.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid-c4-dynamic.svg"); } @Test public void testClass() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-class.svg", 1); + testMermaid("samples/tests/spec2/foreign/mermaid-class.svg", 1); } @Test public void testEntityRelationship() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-erd.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid-erd.svg"); } @Test public void testEntityRelationship2() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-erd2.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid-erd2.svg"); } @Test public void testFlowChart() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-flowchart.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid-flowchart.svg"); } @Test public void testFlowChartCyrillic() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-flowchart-cyrillic.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid-flowchart-cyrillic.svg"); } @Test public void testGantt() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-gantt.svg", 6); + testMermaid("samples/tests/spec2/foreign/mermaid-gantt.svg", 6); } @Test public void testGitGraph() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-git-graph.svg", 1); + testMermaid("samples/tests/spec2/foreign/mermaid-git-graph.svg", 1); } @Test public void testJourney() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-journey.svg", 9); + testMermaid("samples/tests/spec2/foreign/mermaid-journey.svg", 9); } @Test public void testMindmap() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-mindmap.svg", 1); + testMermaid("samples/tests/spec2/foreign/mermaid-mindmap.svg", 1); } @Test public void testPie() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-pie.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid-pie.svg"); } @Test public void testQuadrant() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-quadrant.svg", 6); + testMermaid("samples/tests/spec2/foreign/mermaid-quadrant.svg", 6); } @Test public void testRequirement() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-requirement.svg", 1); + testMermaid("samples/tests/spec2/foreign/mermaid-requirement.svg", 1); } @Test public void testSankey() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-sankey.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid-sankey.svg"); } @Test public void testSequence() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-sequence.svg", 9); + testMermaid("samples/tests/spec2/foreign/mermaid-sequence.svg", 9); } @Test public void testSequenceBackground() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-sequence-background.svg", 5); + testMermaid("samples/tests/spec2/foreign/mermaid-sequence-background.svg", 5); } @Test public void testSequenceCritical() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-sequence-critical.svg", 5); + testMermaid("samples/tests/spec2/foreign/mermaid-sequence-critical.svg", 5); } @Test public void testSequenceGrouping() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-sequence-grouping.svg", 11); + testMermaid("samples/tests/spec2/foreign/mermaid-sequence-grouping.svg", 11); } @Test public void testSequenceParallel() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-sequence-parallel.svg", 7); + testMermaid("samples/tests/spec2/foreign/mermaid-sequence-parallel.svg", 7); } @Test public void testState() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-state.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid-state.svg"); } @Test public void testTimeline() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-timeline.svg", 2); + testMermaid("samples/tests/spec2/foreign/mermaid-timeline.svg", 2); } @Test public void testXY() throws TranscoderException, IOException { - testNV("samples/tests/spec2/foreign/mermaid-xy.svg"); + testMermaid("samples/tests/spec2/foreign/mermaid-xy.svg"); } } diff --git a/echosvg-test/src/test/java/io/sf/carte/echosvg/test/svg/StyleBypassRenderingTest.java b/echosvg-test/src/test/java/io/sf/carte/echosvg/test/svg/StyleBypassRenderingTest.java index 2235e1246..f87c40af8 100644 --- a/echosvg-test/src/test/java/io/sf/carte/echosvg/test/svg/StyleBypassRenderingTest.java +++ b/echosvg-test/src/test/java/io/sf/carte/echosvg/test/svg/StyleBypassRenderingTest.java @@ -471,8 +471,8 @@ public void testLinkingViewBox() throws TranscoderException, IOException { @Test public void testMissingRef_All() throws TranscoderException, IOException { - testAllInputSources("samples/tests/spec/linking/missingRef.svg", null, false, null, false, - 16); + testAllInputSources("samples/tests/spec/linking/missingRef.svg", null, false, null, null, + false, 16); } @Test @@ -1332,7 +1332,8 @@ public void testBug19363() throws TranscoderException, IOException { */ @Test public void testCSS3_All() throws TranscoderException, IOException { - testAllInputSources("samples/tests/spec2/styling/css3.html", null, false, null, false, 4); + testAllInputSources("samples/tests/spec2/styling/css3.html", null, false, null, null, + false, 4); } @Test @@ -1353,7 +1354,7 @@ public void testCSS3Dark() throws TranscoderException, IOException { @Test public void testCSS3_Selector() throws TranscoderException, IOException { test("samples/tests/spec2/styling/css3.html", SVGRenderingAccuracyTest.DEFAULT_MEDIUM, - false, "#theSVG", true, 4); + false, null, "#theSVG", true, 4); } } diff --git a/test-references/samples/tests/spec2/foreign/mermaid-93.png b/test-references/samples/tests/spec2/foreign/mermaid-93.png index 10c0ff916..26227fcce 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-93.png and b/test-references/samples/tests/spec2/foreign/mermaid-93.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-c4-component.png b/test-references/samples/tests/spec2/foreign/mermaid-c4-component.png index c496c1d02..e61f1f12b 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-c4-component.png and b/test-references/samples/tests/spec2/foreign/mermaid-c4-component.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-c4-container.png b/test-references/samples/tests/spec2/foreign/mermaid-c4-container.png index d8e246e2f..546f0c750 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-c4-container.png and b/test-references/samples/tests/spec2/foreign/mermaid-c4-container.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-c4-context.png b/test-references/samples/tests/spec2/foreign/mermaid-c4-context.png index 90cdbeaa4..548ac2663 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-c4-context.png and b/test-references/samples/tests/spec2/foreign/mermaid-c4-context.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-c4-deployment.png b/test-references/samples/tests/spec2/foreign/mermaid-c4-deployment.png index 65bf05817..e87a5b0ca 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-c4-deployment.png and b/test-references/samples/tests/spec2/foreign/mermaid-c4-deployment.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-c4-dynamic.png b/test-references/samples/tests/spec2/foreign/mermaid-c4-dynamic.png index 1d2277d85..92e6aa873 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-c4-dynamic.png and b/test-references/samples/tests/spec2/foreign/mermaid-c4-dynamic.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-class.png b/test-references/samples/tests/spec2/foreign/mermaid-class.png index 8d2ba6683..3eed4cd4a 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-class.png and b/test-references/samples/tests/spec2/foreign/mermaid-class.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-erd.png b/test-references/samples/tests/spec2/foreign/mermaid-erd.png index ef2c75374..26adfceb9 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-erd.png and b/test-references/samples/tests/spec2/foreign/mermaid-erd.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-erd2.png b/test-references/samples/tests/spec2/foreign/mermaid-erd2.png index 202ac8ab8..8a1a3196f 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-erd2.png and b/test-references/samples/tests/spec2/foreign/mermaid-erd2.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-flowchart-cyrillic.png b/test-references/samples/tests/spec2/foreign/mermaid-flowchart-cyrillic.png index bc3858165..d3d82992e 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-flowchart-cyrillic.png and b/test-references/samples/tests/spec2/foreign/mermaid-flowchart-cyrillic.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-flowchart.png b/test-references/samples/tests/spec2/foreign/mermaid-flowchart.png index 044e02af9..1f39592d2 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-flowchart.png and b/test-references/samples/tests/spec2/foreign/mermaid-flowchart.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-gantt.png b/test-references/samples/tests/spec2/foreign/mermaid-gantt.png index ea2db3889..77e8f9f68 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-gantt.png and b/test-references/samples/tests/spec2/foreign/mermaid-gantt.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-git-graph.png b/test-references/samples/tests/spec2/foreign/mermaid-git-graph.png index d1aa8be5c..83e013afd 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-git-graph.png and b/test-references/samples/tests/spec2/foreign/mermaid-git-graph.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-journey.png b/test-references/samples/tests/spec2/foreign/mermaid-journey.png index 6388ffa6f..31d68a987 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-journey.png and b/test-references/samples/tests/spec2/foreign/mermaid-journey.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-mindmap.png b/test-references/samples/tests/spec2/foreign/mermaid-mindmap.png index 018756e35..b55efc896 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-mindmap.png and b/test-references/samples/tests/spec2/foreign/mermaid-mindmap.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-pie.png b/test-references/samples/tests/spec2/foreign/mermaid-pie.png index 34614f3f0..81ca17841 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-pie.png and b/test-references/samples/tests/spec2/foreign/mermaid-pie.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-quadrant.png b/test-references/samples/tests/spec2/foreign/mermaid-quadrant.png index b69879896..7bf8e0d81 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-quadrant.png and b/test-references/samples/tests/spec2/foreign/mermaid-quadrant.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-requirement.png b/test-references/samples/tests/spec2/foreign/mermaid-requirement.png index 67c41329f..d6b1cc0ac 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-requirement.png and b/test-references/samples/tests/spec2/foreign/mermaid-requirement.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-sankey.png b/test-references/samples/tests/spec2/foreign/mermaid-sankey.png index ed3c1c1a2..7ede7e224 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-sankey.png and b/test-references/samples/tests/spec2/foreign/mermaid-sankey.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-sequence-background.png b/test-references/samples/tests/spec2/foreign/mermaid-sequence-background.png index 6f0f53147..003859e3b 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-sequence-background.png and b/test-references/samples/tests/spec2/foreign/mermaid-sequence-background.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-sequence-critical.png b/test-references/samples/tests/spec2/foreign/mermaid-sequence-critical.png index 9f889e191..166d6270b 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-sequence-critical.png and b/test-references/samples/tests/spec2/foreign/mermaid-sequence-critical.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-sequence-grouping.png b/test-references/samples/tests/spec2/foreign/mermaid-sequence-grouping.png index 294adfbd6..b1429a4eb 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-sequence-grouping.png and b/test-references/samples/tests/spec2/foreign/mermaid-sequence-grouping.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-sequence-parallel.png b/test-references/samples/tests/spec2/foreign/mermaid-sequence-parallel.png index d8eb569b7..4261bef5a 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-sequence-parallel.png and b/test-references/samples/tests/spec2/foreign/mermaid-sequence-parallel.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-sequence.png b/test-references/samples/tests/spec2/foreign/mermaid-sequence.png index 92d9e29fc..54d505d39 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-sequence.png and b/test-references/samples/tests/spec2/foreign/mermaid-sequence.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-state.png b/test-references/samples/tests/spec2/foreign/mermaid-state.png index 77bb84a2f..a3dd0825c 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-state.png and b/test-references/samples/tests/spec2/foreign/mermaid-state.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-timeline.png b/test-references/samples/tests/spec2/foreign/mermaid-timeline.png index 40e2850fc..43021a954 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-timeline.png and b/test-references/samples/tests/spec2/foreign/mermaid-timeline.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid-xy.png b/test-references/samples/tests/spec2/foreign/mermaid-xy.png index e463a361f..cfa744cbf 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid-xy.png and b/test-references/samples/tests/spec2/foreign/mermaid-xy.png differ diff --git a/test-references/samples/tests/spec2/foreign/mermaid.png b/test-references/samples/tests/spec2/foreign/mermaid.png index d166c6528..ca87d3f82 100644 Binary files a/test-references/samples/tests/spec2/foreign/mermaid.png and b/test-references/samples/tests/spec2/foreign/mermaid.png differ