1 <!DOCTYPE html>
2 <html><head>
3 <meta charset="utf-8">
4 <title>CSS Backgrounds and Borders Test: background-clip - border-box keyword value</title>
5 <link href="http://www.intel.com" rel="author" title="Intel">
6 <link href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" rel="reviewer" title="Gérard Talbot"> <!-- 2012-11-09 -->
7 <link href="http://www.w3.org/TR/css3-background/#the-background-clip" rel="help" title="3.7. Painting Area: the 'background-clip' property">
8 <link href="reference/background-clip-002-ref.htm" rel="match">
9 <meta content="" name="flags">
10 <meta content="Background-clip with 'border-box' implies to paint the background within (clipped to) the border box." name="assert">
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
34
35 </body></html>