css3-background-size

the size of the background image

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3   <meta charset="UTF-8">
 4   <title>CSS Background-size Test: the size of the background image</title>
 5   <link href="mailto:451887565@qq.com" rel="author" title="Xie Bing">
 6   <link href="mailto:shendayang@baidu.com" rel="reviewer" title="Dayang Shen"> <!-- 2013-09-03 -->
 7   <link href="http://www.w3.org/TR/css3-background/#the-border-width" rel="help">
 8   <link href="reference/css3-background-size-ref.htm" rel="match">
 9   <style type="text/css">
10     div{
11       width:60px;
12       height:60px;
13       background:url(support/60x60-green.png);
14       background-size:50%;
15       background-repeat: no-repeat;
16     }
17   </style>
18 </head>
19 <body>
20   <p>The test passes if the green box is resized to 50%.</p>
21   <div></div>
22 
23 
24 </body></html>