Skip to content

Commit ca150a2

Browse files
Evgeniy PrudnikoviText-CI
authored andcommitted
Add ticket number and tests for the corresponding TODOs
DEVSIX-6453 Autoported commit. Original commit hash: [9c95a6943]
1 parent 8bfda2d commit ca150a2

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

itext.tests/itext.html2pdf.tests/itext/html2pdf/css/MarginTest.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ public virtual void MarginAutoImageInsideDiv02Test() {
6868
ConvertToPdfAndCompare("marginAutoImageInsideDiv02", SOURCE_FOLDER, DESTINATION_FOLDER);
6969
}
7070

71+
[NUnit.Framework.Test]
72+
public virtual void AutoMarginTest() {
73+
//TODO DEVSIX-5002 pdfHTML: support 'margin: auto'
74+
ConvertToPdfAndCompare("autoMargin", SOURCE_FOLDER, DESTINATION_FOLDER);
75+
}
76+
7177
[NUnit.Framework.Test]
7278
//TODO DEVSIX-1101 Layout + Html2pdf: Support margin value in percents
7379
[LogMessage(Html2PdfLogMessageConstant.MARGIN_VALUE_IN_PERCENT_NOT_SUPPORTED)]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
</head>
5+
<body>
6+
<div style="background-color: blue; position: absolute">
7+
<div style="background-color: yellow; width: 100px; margin-left: auto">
8+
should aligned right cause of margins<br/>
9+
</div>
10+
<div style="background-color: yellow; width: 200px">
11+
should aligned left as default
12+
</div>
13+
</div>
14+
</body>
15+
</html>
Binary file not shown.

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0993f90832f3459859766e02551654df2200a3d7
1+
9c95a69439cecb5edad990936b80b0e5a18eb297

0 commit comments

Comments
 (0)