summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/reference/border-image-space-001-ref.html
blob: 22c5f4dfb8b40fddeb3eeb0af52056dfebf623e1 (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
<!DOCTYPE html>
<html>
<!-- Submitted from TestTWF Paris -->
 <head>
  <title>CSS Test: Border Image: box with spaced repeating border image</title>
  <link rel="author" title="Levi Weintraub" href="mailto:leviw@chromium.org">
  <style>
   div {
    background-color: green;
   }
   .borderContainer {
    width: 108px;
    height: 108px;
    position: relative;
   }
   .borderContainer > div {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: absolute;
   }
   .corner {
    background-image: url('../support/border.png');
    background-size: 60px 60px;
   }
   .edge {
    background-image: url('../support/border.png');
    background-position: left -20px;
    background-size: 60px 60px;
   }
   .left {
    left: 0px;
   }
   .left1 {
    left: 22px;
   }
   .left2 {
    left: 44px;
   }
   .left3 {
    left: 66px;
   }
   .right {
    right: 0px;
   }
   .top {
    top: 0px;
   }
   .top1 {
    top: 22px;
   }
   .top2 {
    top: 44px;
   }
   .top3 {
    top: 66px;
   }
   .bottom {
    bottom: 0px;
   }
  </style>
 </head>
 <body>
  <p>There should be a green box below with red diamonds in the corners, and three yellow diamonds evenly spaced
    apart along the edges.</p>
  <div class="borderContainer">
    <div class="corner top left"></div><div class="edge top left1"></div><div class="edge top left2"></div><div class="edge top left3"></div><div class="corner top right"></div>
    <div class="edge left top1"></div><div class="edge right top1"></div>
    <div class="edge left top2"></div><div class="edge right top2"></div>
    <div class="edge left top3"></div><div class="edge right top3"></div>
    <div class="corner bottom left"></div><div class="edge bottom left1"></div><div class="edge bottom left2"></div><div class="edge bottom left3"></div><div class="corner bottom right"></div>
  </div>
 </body>
</html>