Skip to content

Commit

Permalink
#649 Test that multiple bg images can be used in page at-rule
Browse files Browse the repository at this point in the history
  • Loading branch information
danfickle committed Feb 16, 2021
1 parent 9532d6c commit 8984de6
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<html>
<head>
<style>
@page {
size: 400px 300px;
margin: 10px;
background-image: url(../../demos/images/cc0-cat.png);
background-position: right center;
background-repeat: no-repeat;
}
@page:first {
background-image: url(../../demos/images/cc0-cat.png), url(../../demos/images/flyingsaucer.png);
background-repeat: no-repeat;
background-size: 150px auto, auto 40%;
background-position: left top, right bottom;
}
body {
margin: 10px;
max-width: 360px;
}
#one {
page-break-before: always;
background: red;
height: 10px;
}
</style>
</head>
<body>
<div id="one"></div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -1391,6 +1391,14 @@ public void testIssue649MultipleBgImagesAdvanced() throws IOException {
assertTrue(vt.runTest("issue-649-multiple-bg-images-advanced"));
}

/**
* Tests that multiple background images can be used in a page at-rule.
*/
@Test
public void testIssue649MultipleBgImagesPageBox() throws IOException {
assertTrue(vt.runTest("issue-649-multiple-bg-images-page-box"));
}

// TODO:
// + Elements that appear just on generated overflow pages.
// + content property (page counters, etc)
Expand Down

0 comments on commit 8984de6

Please sign in to comment.