File: clip.html

package info (click to toggle)
html2canvas 0.5.0~beta4%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 920 kB
  • ctags: 416
  • sloc: makefile: 52
file content (43 lines) | stat: -rw-r--r-- 1,642 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!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;
            border: 5px solid blue;
        }
    </style>

</head>
<body>
<div style="clip: rect(0px, 400px, 50px, 200px); ">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>

<div style="clip: rect(0px, 400px, 50px, 200px); position: relative; ">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>

<div style="clip: rect(0px, 400px, 50px, 200px); position: fixed; ">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>

<div style="clip: rect(0px, 400px, 50px, 200px); position: absolute; top: 250px; left: 500px;">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>

<div style="clip: rect(0px, 400px, 50px, 200px); position: absolute; top: 500px;">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>