mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
test case for body bgcolor and negative z-index #256
This commit is contained in:
parent
fb944d9381
commit
feb2fd0a63
25
tests/cases/zindex/z-index14.html
Normal file
25
tests/cases/zindex/z-index14.html
Normal file
@ -0,0 +1,25 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>body text above children with negative index but body bgcolor below</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script type="text/javascript" src="../../test.js"></script>
|
||||
<style type="text/css">
|
||||
* {margin:0;padding:0;}
|
||||
body {
|
||||
background-color: green;
|
||||
}
|
||||
#div1 {
|
||||
background-color:cyan;
|
||||
width:200px;
|
||||
height:200px;
|
||||
z-index:-1;
|
||||
position:absolute;
|
||||
top:0; left:0;
|
||||
}
|
||||
</style></head>
|
||||
|
||||
<body>body
|
||||
<div id="div1"></div>
|
||||
</body>
|
||||
</html>
|
26
tests/cases/zindex/z-index15.html
Normal file
26
tests/cases/zindex/z-index15.html
Normal file
@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>body text and bgcolor above children with negative z-index</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<script type="text/javascript" src="../../test.js"></script>
|
||||
<style type="text/css">
|
||||
* {margin:0;padding:0;}
|
||||
html {background-color: gray;}
|
||||
body {
|
||||
background-color: green;
|
||||
}
|
||||
#div1 {
|
||||
background-color:cyan;
|
||||
width:200px;
|
||||
height:200px;
|
||||
z-index:-1;
|
||||
position:absolute;
|
||||
top:0; left:0;
|
||||
}
|
||||
</style></head>
|
||||
|
||||
<body>body
|
||||
<div id="div1"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user