Fix data-html2canvas-ignore attribute (Fix #1253)

This commit is contained in:
Niklas von Hertzen
2017-12-07 16:12:39 +08:00
parent 4a09264103
commit 9db8580b97
3 changed files with 46 additions and 1 deletions

View File

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html>
<head>
<title>element render test</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script>
</script>
<script type="text/javascript" src="../../test.js"></script>
<style>
#div1 {
width: 100px;
height: 100px;
background: green;
}
#ignored {
background: red;
width: 100px;
height: 100px;
}
body, html {
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="ignored" data-html2canvas-ignore>
great failure
</div>
<div id="div1">
great success
</div>
</body>
</html>