File: absolute-child.html

package info (click to toggle)
php-dompdf 3.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,848 kB
  • sloc: php: 26,450; sh: 109; xml: 100; makefile: 42
file content (47 lines) | stat: -rw-r--r-- 888 bytes parent folder | download
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
44
45
46
47
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">
<meta name="description"
    content="The absolutely positioned bold text should not affect the
    dimensions of the red boxes. White-space collapse in interaction with inline
    elements and rendering of empty inline elements is not handled correctly
    currently">
<style>
@page {
    size: 400pt 300pt;
    margin: 50pt;
}

html {
    font-family: sans-serif;
    font-size: 14pt;
    line-height: 16pt;
}

p {
    margin: 0 0 16pt;
}

span {
    position: relative;
    outline: solid red;
}

b {
    position: absolute;
    top: 16pt;
    width: 200pt;
}
</style>
</head>

<body>
    <p>Lorem <span>ipsum dolor sit amet</span>.</p>
    <p>Lorem <span>ipsum <b>dolor sit</b> amet</span>.</p>
    <p>Lorem <span><b>ipsum dolor sit</b> amet</span>.</p>
    <p>Lorem <span><b>ipsum dolor sit amet</b></span>.</p>
</body>

</html>