summaryrefslogtreecommitdiffstats
path: root/layout/reftests/border-image/multicolor-image-2.html
blob: a35d041b380e794c19f38d1c0a10654878e1cf5f (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en-US">
<head>
  <title>test of border-image</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-image: url(10x5multicolor.png) 2 2 1 3 fill;
    -khtml-border-image: url(10x5multicolor.png) 2 2 1 3 fill;
    border-image: url(10x5multicolor.png) 2 2 1 3 fill;
    border-width: 4px 6px 8px 11px;
    border-style: solid;
    width: 9px;
    height: 1px;
  }

  div.two {
    border-image: url(10x5multicolor.png) 40% 20% 20% 30% fill;
    -khtml-border-image: url(10x5multicolor.png) 40% 20% 20% 30% fill;
    border-image: url(10x5multicolor.png) 40% 20% 20% 30% fill;
    border-width: 3px 1px 0px 4px;
    border-style: solid;
    width: 2px;
    height: 17px;
  }

  div.three {
    border-image: url(10x5multicolor.png) 40% 2 1 30% fill;
    -khtml-border-image: url(10x5multicolor.png) 40% 2 1 30% fill;
    border-image: url(10x5multicolor.png) 40% 2 1 30% fill;
    border-width: 10px 2px 5px 3px;
    border-style: solid;
    width: 17px;
    height: 8px;
  }

  div.four {
    border-image: url(10x5multicolor.png) 2 2 20% 30% fill;
    -khtml-border-image: url(10x5multicolor.png) 2 2 20% 30% fill;
    border-image: url(10x5multicolor.png) 2 2 20% 30% fill;
    border-width: 5px 7px 1px 0;
    border-style: solid;
    width: 8px;
    height: 5px;
  }

  div.five {
    border-width: 4px 8px 10px 2px;
    border-image: url(10x5multicolor.png) 40% 2 1 30% fill;
    -khtml-border-image: url(10x5multicolor.png) 40% 2 1 30% fill;
    border-image: url(10x5multicolor.png) 40% 2 1 30% fill;
    border-style: solid;
    width: 0;
    height: 8px;
  }

  div.six {
    border-width: 4px 0 10px 2px;
    border-image: url(10x5multicolor.png) 40% 2 1 30% fill;
    -khtml-border-image: url(10x5multicolor.png) 40% 2 1 30% fill;
    border-image: url(10x5multicolor.png) 40% 2 1 30% fill;
    border-style: solid;
    width: 17px;
    height: 0;
  }

  div.seven {
    border-image: url(10x5multicolor.png) 40% 2 1 30% fill;
    -khtml-border-image: url(10x5multicolor.png) 40% 2 1 30% fill;
    border-image: url(10x5multicolor.png) 40% 2 1 30% fill;
    border-width: 1px 3px 0 0;
    border-style: solid;
    width: 17px;
    height: 0;
  }

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