Skip to content

Commit

Permalink
#328 Regression test. Tests SVG in a wrapper element with named page.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfickle committed Mar 2, 2019
1 parent 9953cb1 commit 2cb7216
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<html>
<head>
<style>
@page toc {
margin: 1.3cm 2.5cm;
size: 7cm 7cm;
}
body {
margin-top: 0;
}
.toc {
page: toc;
font-size: 12px;
}
</style>
</head>
<body>
<div class="toc">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 34.24" width="50" height="50"><polygon points="18 0 23.56 11.27 36 13.08 27 21.85 29.13 34.24 18 28.39 6.88 34.24 9 21.85 0 13.08 12.44 11.27 18 0" fill="#f4bd5e"/></svg>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,14 @@ public void testPaddingPercentage() throws IOException {
assertTrue(vt.runTest("padding-percentage"));
}


/**
* Tests that a SVG in a wrapper with no other content and on a named
* page will not crash. Issue 328.
*/
@Test
public void testSvgInWrapperWithNamedPage() throws IOException {
assertTrue(vt.runTest("svg-in-wrapper-with-named-page", WITH_SVG));
}

// TODO:
// + Elements that appear just on generated overflow pages.
Expand Down

0 comments on commit 2cb7216

Please sign in to comment.