mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
60 lines
2.3 KiB
HTML
60 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Background attribute tests</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<script type="text/javascript" src="../../test.js"></script>
|
|
<style>
|
|
html {
|
|
background-color: red;
|
|
}
|
|
body {
|
|
background-color: lime;
|
|
}
|
|
|
|
.medium div{
|
|
width:100px;
|
|
height:100px;
|
|
float:left;
|
|
margin:10px;
|
|
border:20px solid transparent;
|
|
border-width: 10px 20px 30px 40px;
|
|
background: green;
|
|
padding: 25px 15px;
|
|
}
|
|
|
|
.medium{
|
|
clear:both;
|
|
}
|
|
|
|
div{
|
|
display:block;
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
<body>
|
|
<div class="medium">
|
|
<div style="background:url(../../assets/image.jpg);background-clip: border-box; background-origin: padding-box; background-repeat: repeat-x;"></div>
|
|
<div style="background:url(../../assets/image.jpg);background-clip: padding-box; background-origin: padding-box; background-repeat: repeat-x;"></div>
|
|
<div style="background:url(../../assets/image.jpg);background-clip: content-box; background-origin: padding-box; background-repeat: repeat-x;"></div>
|
|
<div style="background:url(../../assets/image.jpg);background-clip: border-box; background-origin: padding-box; background-repeat: repeat;"></div>
|
|
</div>
|
|
|
|
<div class="medium">
|
|
<div style="background:url(../../assets/image.jpg);background-clip: border-box; background-origin: padding-box; background-repeat: repeat-y;"></div>
|
|
<div style="background:url(../../assets/image.jpg);background-clip: padding-box; background-origin: padding-box; background-repeat: repeat-y;"></div>
|
|
<div style="background:url(../../assets/image.jpg);background-clip: content-box; background-origin: padding-box; background-repeat: repeat-y;"></div>
|
|
</div>
|
|
|
|
<div class="medium">
|
|
<div style="background-clip: border-box;"></div>
|
|
<div style="background-clip: padding-box;"></div>
|
|
<div style="background-clip: content-box;"></div>
|
|
<div style=""></div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|