1 <!DOCTYPE html>
2 <html><head>
3 <meta charset="utf-8">
4 <title>CSS Background: background-repeat: background image space</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-5-ref.htm" rel="match">
9 <meta content="Test checks whether background-repeat: 'space repeat' works correctly or not." name="assert">
10 <style type="text/css">
11 .outer {
12 width: 106px;
13 height: 96px;
14 border: 1px solid black;
15 background-image: url(aqua-yellow-32x32.png);
16 background-repeat: space repeat;
17 }
18 .outer_gradient {
19 width: 106px;
20 height: 96px;
21 border: 1px solid black;
22 background-size: 32px 32px;
23 background-image: linear-gradient(to top left, red, green);
24 background-repeat: space repeat;
25 }
26 </style>
27 </head>
28 <body>
29 <div class="outer"></div>
30 <div class="outer_gradient"></div>
31
32
33
34 </body></html>