summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-text/text-indent/reference/text-indent-with-absolute-pos-child-ref.html
blob: e5feb2c7f98dcf426a7874ca2b57e0d15f18ffe3 (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>This tests that first line text-indent is applied properly when the child is a statically positioned out-of-flow renderer.</title>

<link rel="stylesheet" href="/fonts/ahem.css" />
<style>
 body {
  margin: 40px;
 }

.container {
  display: block;
  background-color: green;
  width: 100px;
  height: 20px;
  color: green;
  font-family: Ahem;
  font-size: 10px;
}

.inner {
  display: block;
  background-color: blue;
  width: 20px;
  height: 20px;
}
</style>
</head>
<body>
<div>
<div class=container><div class=inner style="margin-left: 20px;"></div></div>
<div class=container><div class=inner style="margin-left: 20px;"></div></div>
<div class=container><div class=inner style="margin-left: 20px;"></div></div>
<div class=container><div class=inner style="margin-left: 20px;"></div></div>
<div class=container><div class=inner style="position: relative; left: 70px;"></div></div>
<div class=container><div class=inner style="margin-left: -20px;"></div></div>
<div class=container><div class=inner style="left: 40px;"></div></div>
<div class=container><div class=inner></div></div>
<div class=container><div class=inner></div></div>
<div class=container><div class=inner style="position: relative; top: 10px"></div></div>
<div class=container><div class=inner></div></div>
</div>

<div style="direction: rtl;">
<div class=container><div class=inner style="margin-right: 20px;"></div></div>
<div class=container><div class=inner style="margin-right: 20px;"></div></div>
<div class=container><div class=inner style="margin-right: 20px;"></div></div>
<div class=container><div class=inner style="margin-right: 20px;"></div></div>
<div class=container><div class=inner style="position: relative; right: 70px;"></div></div>
<div class=container><div class=inner style="margin-right: -20px;"></div></div>
<div class=container><div class=inner style="right: 40px;"></div></div>
<div class=container><div class=inner></div></div>
<div class=container><div class=inner></div></div>
<div class=container><div class=inner style="position: relative; top: 10px"></div></div>
<div class=container><div class=inner></div></div>
</div>

</body>
</html>