css3-background-clip.html (794B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="UTF-8"> 5 <title>CSS Background-clip Test: the background is pruned to content box</title> 6 <link rel="author" title="Xie Bing" href="mailto:451887565@qq.com"> 7 <link rel="reviewer" title="Dayang Shen" href="mailto:shendayang@baidu.com"> <!-- 2013-09-03 --> 8 <link rel="help" href="http://www.w3.org/TR/css3-background/#the-border-width"> 9 <link rel="match" href="reference/css3-background-clip-ref.html"/> 10 <style type="text/css"> 11 div{ 12 width:300px; 13 height:300px; 14 padding:50px; 15 border:10px dashed #000000; 16 background-color:yellow; 17 background-clip:content-box; 18 } 19 </style> 20 </head> 21 <body> 22 <p>The test passes if the background is pruned to content box.</p> 23 <div>Inner area!</div> 24 </body> 25 </html>