background-repeat-space-8

CSS Background: background-repeat: background image space

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
Test checks whether background-repeat: 'space' works correctly or not.

Source

 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-8-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: 106px;
13         height: 106px;
14         border: 20px solid rgba(0, 0, 0, .5);
15         background-image: url(aqua-yellow-32x32.png);
16         background-repeat: space;
17       }
18       .outer_gradient {
19         width: 32px;
20         height: 32px;
21         border: 20px solid rgba(0, 0, 0, .5);
22         background-size: 50px 50px;
23         background-image: linear-gradient(to top left, red, green);
24         background-repeat: space;
25         background-position: -10px -10px;
26       }
27     </style>
28   </head>
29   <body>
30     <div class="outer"></div>
31     <div class="outer_gradient"></div>
32   
33 
34 
35 </body></html>