1 <!DOCTYPE html>
2 <html><head>
3 <title>CSS Background and Border Test:background-size conflicts with background-attachment</title>
4 <link href="mailto:stenders@163.com" rel="author" title="xiaochun">
5 <link href="mailto:jinlongz@oupeng.com" rel="reviewer" title="Jinlong Zhang"><!--2012/10/21-->
6 <link href="http://www.w3.org/TR/css3-background/#the-background-size" rel="help">
7 <link href="reference/background-size-ref.htm" rel="match">
8 <meta content="The test passes if we can see the background-image is exactly same as above." name="assert">
9 <style type="text/css">
10 .backgroundSize{
11 width:295px;
12 height:289px;
13
14 background-image:url(support/bg.jpg);
15 background-repeat:no-repeat;
16 background-size:cover;
17 background-attachment:fixed;
18 }
19 </style>
20 </head>
21 <body>
22 The image used as background-image is :<br>
23 <img src="support/bg.jpg">
24
25 <p>The test passes if we can see the background-image is exactly same as above.</p>
26 <div class="container">
27 <!-- This is the box that should only contains an image if the test passes -->
28 <div class="backgroundSize">
29 </div>
30 </div>
31
32
33 </body></html>