summaryrefslogtreecommitdiffstats
path: root/layout/reftests/backgrounds/background-size-zoom-repeat.html
blob: 97df2b53f210d4c823adc7710baf74749d2176b9 (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 reftest-zoom="2">
<head>
  <title>background-size: 64px 40px; repeat, zoom</title>
  <style type="text/css">
html
{
  margin: 0;
  padding: 0;
}
body
{
  margin: 0;
  padding: 10px;
}
#outer
{
  /*
   * PRE-ZOOM:
   *   2x size the image, then tile it 4x4 across the div; sampling artifacts at
   *   32px horizontal offset, then every 64px for the full height of the div.
   * POST-ZOOM:
   *   4x size the image, then tile it 4x4 across the div; sampling artifacts at
   *   64px horizontal offset, then every 128px for the full height of the div.
   */
  width: 256px;
  height: 160px;
  background-image: url(blue-16x20-green-16x20.png);
  background-repeat: repeat;
  background-size: 64px 40px;
}

/* Aargh, sampling artifacts, we hates them, precioussss. */
#outer > div
{
  display: inline-block;
  width: 28px;
  height: 160px;
}
.blue
{
  border-right: 4px solid black;
}
.green
{
  border-left: 4px solid black;
}
  </style>
</head>
<body>
<div id="outer"><div
  class="blue"></div><div
  class="green"></div><div
  class="blue"></div><div
  class="green"></div><div
  class="blue"></div><div
  class="green"></div><div
  class="blue"></div><div
  class="green"></div></div>
</body>
</html>