-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#649 Test that multiple bg images can be used in page at-rule
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+14.9 KB
...examples/src/main/resources/visualtest/expected/issue-649-multiple-bg-images-page-box.pdf
Binary file not shown.
31 changes: 31 additions & 0 deletions
31
...df-examples/src/main/resources/visualtest/html/issue-649-multiple-bg-images-page-box.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters