mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Add test case for css clip
This commit is contained in:
parent
5712b621ca
commit
d8dcbdedd8
25
tests/cases/clip.html
Normal file
25
tests/cases/clip.html
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Inline text in the top element</title>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||||
|
<script type="text/javascript" src="../test.js"></script>
|
||||||
|
<style>
|
||||||
|
span {
|
||||||
|
color:blue;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
background-color: green;
|
||||||
|
}
|
||||||
|
div {
|
||||||
|
background: red;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div style="clip: rect(0px, 500px, 200px, 200px); position: absolute;">Some inline text <span> followed by text in span </span> followed by more inline text.
|
||||||
|
<p>Then a block level element.</p>
|
||||||
|
Then more inline text.</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
x
Reference in New Issue
Block a user