Skip to content

Commit 83ec8b0

Browse files
AnhelinaMiText-CI
authored andcommitted
Fix behavior for svg containing elements with zero or negative stroke-width
DEVSIX-6270 Autoported commit. Original commit hash: [1ffa4d507]
1 parent 5c972df commit 83ec8b0

File tree

17 files changed

+37
-6
lines changed

17 files changed

+37
-6
lines changed

itext.tests/itext.svg.tests/itext/svg/renderers/StrokeTest.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ public virtual void StrokeAttributesTest() {
100100
ConvertAndCompare(SOURCE_FOLDER, DESTINATION_FOLDER, "stroke-attributes");
101101
}
102102

103+
[NUnit.Framework.Test]
104+
public virtual void ZeroStrokeWidthTest() {
105+
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "zeroStrokeWidth");
106+
}
107+
108+
[NUnit.Framework.Test]
109+
public virtual void NegativeStrokeWidthTest() {
110+
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "negativeStrokeWidth");
111+
}
112+
103113
[NUnit.Framework.Test]
104114
public virtual void HeightWidthZeroTest() {
105115
ConvertAndCompareSinglePage(SOURCE_FOLDER, DESTINATION_FOLDER, "heightWidthZero");
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)