mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
add tests for sliver background images
This commit is contained in:
parent
55b1036336
commit
439de116d9
BIN
tests/assets/bg-sliver.png
Normal file
BIN
tests/assets/bg-sliver.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 190 B |
@ -9,6 +9,10 @@
|
||||
display: block;
|
||||
background:url("../../assets/image.jpg") center center;
|
||||
}
|
||||
.sliver div {
|
||||
background:url("../../assets/bg-sliver.png") center center;
|
||||
background-size: 650px auto;
|
||||
}
|
||||
|
||||
.vertical {
|
||||
float: right;
|
||||
@ -57,5 +61,8 @@
|
||||
<div style='background-size: auto;'></div>
|
||||
</div>
|
||||
<div class="container" style="padding: 10px; background-size: contain; background-origin: content-box; background-clip: content-box"></div>
|
||||
<div class="sliver">
|
||||
<div></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user