clip-padding-box.html (1294B)
1 <!doctype html> 2 <html> 3 <head> 4 <title>CSS Backgrounds Test: background-clip:padding-box</title> 5 <link rel="author" title="finscn" href="mailto:finscn@gmail.com" > 6 <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-clip" > 7 <meta name="flags" content="image"> 8 <meta name="assert" content="padding-box : The background is painted within (clipped to) the padding box" > 9 10 <meta charset="utf-8"> 11 12 13 <style type="text/css"> 14 15 .infomation { 16 padding : 10px; 17 font-size : 16pt; 18 margin : 5px; 19 } 20 21 .test-case { 22 padding : 5px; 23 margin : 5px; 24 } 25 26 .view { 27 border : 30px solid rgba(60,150,255,0.4); 28 width : 320px; 29 height : 240px; 30 padding : 30px; 31 margin : 10px; 32 font-size : 16pt; 33 color : #ff9933; 34 background-image : url("../support/css3.png"); 35 } 36 37 .no-repeat { 38 background-repeat : no-repeat; 39 } 40 41 .case { 42 background-clip : padding-box; 43 } 44 45 46 </style> 47 48 49 </head> 50 <body> 51 52 <div class="infomation"> 53 Test Passed If : The background is clipped. The clip area is the area covered by border(includes padding-area ). 54 </div> 55 56 <div class="test-case"> 57 58 59 <div class="view case no-repeat" > 60 Test background-clip 61 </div> 62 63 <div class="view case" > 64 Test background-clip 65 </div> 66 67 </div> 68 69 </body> 70 71 </html>