background-repeat-space-3

CSS Background: background-repeat: background image round with specified position

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

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

Source

 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-3-ref.htm" rel="match">
 9     <meta content="Test checks whether background-repeat: 'no-repeat space' and 'space no-repeat' works correctly or not." name="assert">
10     <style type="text/css">
11       .outer {
12         width: 106px;
13         height: 106px;
14         border: 1px solid black;
15       }
16       .inner1 {
17         width: 106px;
18         height: 106px;
19         background-image: url(aqua-yellow-32x32.png);
20         background-repeat: space no-repeat;
21         background-position: 7px 40px;
22       }
23       .inner2 {
24         width: 106px;
25         height: 106px;
26         background-image: url(aqua-yellow-32x32.png);
27         background-repeat: no-repeat space;
28         background-position: 40px 7px;
29       }
30       .inner_gradient1 {
31         width: 106px;
32         height: 106px;
33         background-size: 32px 32px;
34         background-image: linear-gradient(to top left, red, green);
35         background-repeat: space no-repeat;
36         background-position: 7px 40px;
37       }
38       .inner_gradient2 {
39         width: 106px;
40         height: 106px;
41         background-size: 32px 32px;
42         background-image: linear-gradient(to top left, red, green);
43         background-repeat: no-repeat space;
44         background-position: 40px 7px;
45       }
46     </style>
47   </head>
48   <body>
49     <div class="outer">
50       <div class="inner1"></div>
51     </div>
52     <div class="outer">
53       <div class="inner2"></div>
54     </div>
55     <div class="outer">
56       <div class="inner_gradient1"></div>
57     </div>
58     <div class="outer">
59       <div class="inner_gradient2"></div>
60     </div>
61 
62 
63 
64 </body></html>