summaryrefslogtreecommitdiffstats
path: root/layout/reftests/border-image/multicolor-image-3.html
blob: 7727bb083da9404201b083f6bca093613e77dbfa (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
62
63
<!DOCTYPE html>
<html lang="en-US">
<head>
  <title>test of border-image: number repetition</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="Content-Style-Type" content="text/css">
  <style type="text/css">

  div {
    background: red; /* fail if this shows through */
    background-image: url('3x3multicolor.png'); /* fail if this shows through */
    margin-bottom: 2px;
  }

  div.one {
    border-width: 4px 6px 8px;
    border-style: solid;
    border-image: url(10x5multicolor.png) 2;
    -khtml-border-image: url(10x5multicolor.png) 2;
    border-image: url(10x5multicolor.png) 2;
    width: 5px;
    height: 2px;
  }

  div.two {
    border-width: 4px;
    border-style: solid;
    border-image: url(10x5multicolor.png) 2 1;
    -khtml-border-image: url(10x5multicolor.png) 2 1;
    border-image: url(10x5multicolor.png) 2 1;
    width: 5px;
    height: 2px;
  }

  div.three {
    border-image: url(10x5multicolor.png) 2 3 1;
    -khtml-border-image: url(10x5multicolor.png) 2 3 1;
    border-image: url(10x5multicolor.png) 2 3 1;
    border-width: 4px 2px;
    border-style: solid;
    width: 5px;
    height: 2px;
  }

  div.four {
    border-width: 4px 3px;
    border-style: solid;
    border-image: url(10x5multicolor.png) 2 3 1 1;
    -khtml-border-image: url(10x5multicolor.png) 2 3 1 1;
    border-image: url(10x5multicolor.png) 2 3 1 1;
    width: 5px;
    height: 2px;
  }

  </style>
</head>
<body>
<div class="one"></div>
<div class="two"></div>
<div class="three"></div>
<div class="four"></div>
</body>
</html>