background-size-with-negative-value.html (1296B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Backgrounds and Borders Test: background-size - negative value</title> 6 <link rel="author" title="Zhuoyu Qian" href="mailto:zhuoyu.qian@samsung.com"> 7 <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-size" title="3.9. Sizing Images: the 'background-size' property"> 8 <link rel="match" href="reference/background-size-002-ref.html"> 9 <meta name="flags" content="image"> 10 <meta name="assert" content="Check if 'background-size' has the negative values, then such values are not allowed and they will be assumed to be 'auto'."> 11 <style> 12 #ref-overlapped-red { 13 background-color: red; 14 height: 45px; 15 width: 45px; 16 } 17 #test-overlapping-green { 18 background-image: url(support/60x60-green.png); 19 background-repeat: no-repeat; 20 background-size: -1px -1px; 21 bottom: 45px; 22 height: 100px; 23 position: relative; 24 width: 100px; 25 } 26 </style> 27 </head> 28 <body> 29 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 30 <div id="ref-overlapped-red"></div> 31 <div id="test-overlapping-green"></div> 32 </body> 33 </html>