mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix canvas cropping with type: 'view'
This commit is contained in:
23
tests/mocha/iframe2.htm
Normal file
23
tests/mocha/iframe2.htm
Normal file
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head lang="en">
|
||||
<meta charset="UTF-8">
|
||||
<title></title>
|
||||
<style>
|
||||
|
||||
html, body {
|
||||
background: red;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.valid {
|
||||
margin-top: 350px;
|
||||
height: 350px;
|
||||
background: green;
|
||||
display: block;
|
||||
margin-bottom: 500px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body><div class="valid"> </div></body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user