~ubuntu-branches/ubuntu/trusty/pisa/trusty

« back to all changes in this revision

Viewing changes to test/test-background-img.html

  • Committer: Bazaar Package Importer
  • Author(s): W. Martin Borgert
  • Date: 2010-02-08 22:02:40 UTC
  • Revision ID: james.westby@ubuntu.com-20100208220240-cwsifrpnqeaug5x5
Tags: upstream-3.0.32
Import upstream version 3.0.32

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
 
2
"http://www.w3.org/TR/html4/loose.dtd">
 
3
<html>
 
4
<head>
 
5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 
6
<title>Background</title>
 
7
<style>
 
8
@page {
 
9
        background: url("img/denker.png");
 
10
        @frame text {
 
11
                top: 6cm;
 
12
                left: 4cm;
 
13
                right: 4cm;
 
14
                bottom: 4cm;
 
15
                -pdf-frame-border: 1;
 
16
        }
 
17
}
 
18
 
 
19
@page p2 {
 
20
        background: url("img/beach.jpg");
 
21
        @frame text {
 
22
                top: 6cm;
 
23
                left: 4cm;
 
24
                right: 4cm;
 
25
                bottom: 4cm;
 
26
                -pdf-frame-border: 1;
 
27
        }
 
28
}
 
29
 
 
30
@page p3 {
 
31
        background-image: url("pdf/background-sample.pdf");
 
32
        @frame text {
 
33
                top: 6cm;
 
34
                left: 4cm;
 
35
                right: 4cm;
 
36
                bottom: 4cm;
 
37
                -pdf-frame-border: 1;
 
38
        }
 
39
}
 
40
 
 
41
</style>
 
42
</head>
 
43
<body>
 
44
 
 
45
        <p>
 
46
        Hello <strong>World</strong>
 
47
        <p>
 
48
        
 
49
        <pdf:nextpage name="p2" />
 
50
 
 
51
        <p>
 
52
        Hello <strong>World</strong>
 
53
        <p>
 
54
 
 
55
        <pdf:nextpage name="p3" />
 
56
 
 
57
        <p>
 
58
        Hello <strong>World</strong>
 
59
        <p>
 
60
        
 
61
</body>
 
62
</html>