1 <!DOCTYPE html>
2 <html><head>
3 <meta charset="utf-8">
4 <title>CSS Background: background-repeat: background image round with specified position</title>
5 <link href="mailto:ethlin@mozilla.com" rel="author" title="Ethan Lin">
6 <link href="https://www.mozilla.org" rel="author" title="Mozilla">
7 <link href="https://www.w3.org/TR/css3-background/#background-repeat" rel="help">
8 <link href="reference/background-repeat-space-2-ref.htm" rel="match">
9 <meta content="Test checks whether background-repeat: 'space' works correctly or not." name="assert">
10 <style type="text/css">
11 .outer {
12 width: 48px;
13 height: 48px;
14 border: 1px solid black;
15 background-image: url(aqua-yellow-32x32.png);
16 background-repeat: space;
17 background-position: 5px 5px;
18 }
19 .outer_gradient {
20 width: 48px;
21 height: 48px;
22 border: 1px solid black;
23 background-size: 32px 32px;
24 background-image: linear-gradient(to top left, red, green);
25 background-repeat: space;
26 background-position: 5px 5px;
27 }
28 </style>
29 </head>
30 <body>
31 <div class="outer"></div>
32 <div class="outer_gradient"></div>
33
34
35
36 </body></html>