background-size-applies-to-block

'Background-size' applied to element with a display of 'block'.

WeasyPrint

This browser

Assertion
'Background-size' property applies to elements with 'display: block'.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html xmlns="http://www.w3.org/1999/xhtml"><head>
 3         <title>CSS Test: 'Background-size' applied to element with a display of 'block'.</title>
 4         <link href="http://www.microsoft.com/" rel="author" title="Microsoft">
 5         <link href="http://www.w3.org/TR/css3-background/#the-background-size" rel="help">
 6         <meta content="" name="flags">
 7         <meta content="'Background-size' property applies to elements with 'display: block'." name="assert">
 8         <style type="text/css">
 9             span
10             {
11                 display: block;
12                 height: 2in;
13                 width: 2in;
14                 border: 20px solid black;
15                 padding: 20px;
16                 background: url("support/black_color.png") no-repeat red;
17                 background-size: 100% 100%;
18             }
19         </style>
20     </head>
21     <body>
22         <p>Test passes if there is no red visible on the page.</p>
23         <span></span>
24     
25 </body></html>