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