Skip to content

Commit

Permalink
#340 Failing test for caption position with non-full-width table.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfickle committed Apr 2, 2019
1 parent 1b5c7a8 commit d003f47
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<html>
<head>
<style>
@page {
size: 300px 300px;
}
td {
border: 1px solid green;
}
</style>
</head>
<body>
<div style="border: 1px solid blue;">
<table style="border: 1px solid red;">
<caption style="border: 1px solid orange;">Caption</caption>
<tr><td>1</td><td>2</td></tr>
</table>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -505,4 +505,14 @@ public void testContentPageNumbers() throws IOException {
public void testContentTableOfContentsExample() throws IOException {
assertTrue(run("content-toc-example"));
}

/**
* Tests that the table caption position is correct in the case when the table is not 100% width.
* Issue 340.
*/
@Test
@Ignore // Failing because the caption box is set as 100% the width of its container, regardless of the table width.
public void testTableCaptionPosition() throws IOException {
assertTrue(run("table-caption-position"));
}
}

0 comments on commit d003f47

Please sign in to comment.