background-size-034

background-size - inherit keyword value

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
image
Assertion
Check if background-size supports inherit keyword as its property value.

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3     <meta charset="utf-8">
 4     <title>CSS Backgrounds and Borders Test: background-size - inherit keyword value</title>
 5     <link href="http://www.intel.com" rel="author" title="Intel">
 6     <link href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" rel="reviewer" title="Gérard Talbot"> <!-- 2012-11-17 -->
 7     <link href="http://www.w3.org/TR/css3-background/#the-background-size" rel="help" title="3.9. Sizing Images: the 'background-size' property">
 8     <link href="http://www.w3.org/TR/css3-background/#values" rel="help">
 9     <link href="reference/ref-filled-green-100px-square.htm" rel="match">
10     <meta content="image" name="flags">
11     <meta content="Check if background-size supports inherit keyword as its property value." name="assert">
12     <style>
13         #container {
14             background-size: 25% 50%;
15         }
16         #ref-overlapped-red {
17             background-color: red;
18             height: 100px;
19             width: 100px;
20         }
21         #test-overlapping-green {
22             background-image: url(support/50x50-green.png);
23             background-repeat: no-repeat;
24             background-size: inherit;
25             bottom: 100px;
26             height: 200px;
27             position: relative;
28             width: 400px;
29         }
30     </style>
31   </head>
32   <body>
33     <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
34     <div id="container">
35       <div id="ref-overlapped-red"></div>
36       <div id="test-overlapping-green"></div>
37     </div>
38   
39 
40 </body></html>