background-clip-003.html (1372B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Backgrounds and Borders Test: background-clip - border-box 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-09 --> 8 <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-clip" title="3.7. Painting Area: the 'background-clip' property"> 9 <link rel="match" href="reference/background-clip-002-ref.html"> 10 <meta name="assert" content="Background-clip with 'border-box' implies to paint the background within (clipped to) the border box."> 11 <style> 12 #ref-overlapped-red { 13 background-color: red; 14 height: 160px; 15 width: 160px; 16 } 17 #test-overlapping-green { 18 background-clip: border-box; 19 background-color: green; 20 border: transparent dotted 5px; 21 bottom: 160px; 22 height: 100px; 23 padding: 25px; 24 position: relative; 25 width: 100px; 26 } 27 </style> 28 </head> 29 <body> 30 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 31 <div id="ref-overlapped-red"></div> 32 <div id="test-overlapping-green"></div> 33 </body> 34 </html>