background-clip_padding-box.html (1145B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Backgrounds and Borders Test: background-clip_border-box</title> 5 <link rel="author" title="Xiaoyan Jiang" href="mailto:dajiangxiaoyan@126.com"> 6 <link rel="reviewer" title="Jinlong Zhang" href="mailto:jinlongz@oupeng.com"> 7 <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-clip"> 8 <link rel="match" href="reference/background_clip_padding-box.html"> 9 <meta name="assert" content="Test passes if border is blue and dotted without red background"> 10 <style type="text/css"> 11 /* Positioned container allows for the self-describing statement to still 12 be visible in the case of failure */ 13 .container { 14 position: absolute; 15 } 16 .test { 17 background-color: red; 18 height: 130px; 19 left: 5px; 20 top: 5px; 21 width: 130px; 22 border: blue dotted 5px ; 23 position: absolute; 24 background-clip: padding-box; 25 } 26 27 28 </style> 29 </head> 30 <body> 31 <p>Test passes if border is blue and dotted without red background </p> 32 <div class="container"> 33 <div class="test"></div> 34 </div> 35 </body> 36 </html>