Skip to content

Commit 9c95a69

Browse files
Evgeniy PrudnikovUbuntu
authored andcommitted
Add ticket number and tests for the corresponding TODOs
DEVSIX-6453
1 parent 0993f90 commit 9c95a69

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

src/test/java/com/itextpdf/html2pdf/css/MarginTest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ public void marginAutoImageInsideDiv02Test() throws IOException, InterruptedExce
7474
convertToPdfAndCompare("marginAutoImageInsideDiv02", SOURCE_FOLDER, DESTINATION_FOLDER);
7575
}
7676

77+
@Test
78+
//TODO DEVSIX-5002 pdfHTML: support 'margin: auto'
79+
public void autoMarginTest() throws IOException, InterruptedException {
80+
convertToPdfAndCompare("autoMargin", SOURCE_FOLDER, DESTINATION_FOLDER);
81+
}
82+
7783
@Test
7884
//TODO DEVSIX-1101 Layout + Html2pdf: Support margin value in percents
7985
@LogMessages(messages = @LogMessage(messageTemplate = 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>
1.11 KB
Binary file not shown.

0 commit comments

Comments
 (0)