summaryrefslogtreecommitdiffstats
path: root/layout/reftests/writing-mode/1083848-3-inline-background-repeat.html
blob: ac9dd02c5bfaf5a98e7f7c6472b5d9512699f9e2 (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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
@font-face {
  font-family: dejavu;
  src: url(../fonts/DejaVuSansMono.woff);
}
.test {
  margin: 10px;
  border: 1px solid gray;
  font: 16px/24px dejavu;
  word-break: break-all;
  width: 10em;
  height: 6.5em;
  /* we use text-orientation:upright to improve the chances that our
     glyphs will have an advance of exactly 1em, as the reference
     rendering relies on this */
  text-orientation: upright;
  color: rgba(0,0,255,0.2);
}

.v-lr { writing-mode:vertical-lr; }
.v-rl { writing-mode:vertical-rl; }

.bgtest {
  background: url(4colors.png); /* A square divided into a 2x2 grid of 4 colors; */
                                /* only the two left squares (blue & cyan) should show */
  background-size: 32px;
}
</style>
</head>

<body>

<div class="test v-lr">ABCD<span class="bgtest">EFGHIJKLMNOPQRSTU</span>VWXYZ</div>

<div class="test v-rl">ABCD<span class="bgtest">EFGHIJKLMNOPQRSTU</span>VWXYZ</div>

</body>
</html>