Files
servo/tests/wpt/css-tests/css-backgrounds-3_dev/html4/background-size-035.htm

33 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html><head>
<title>CSS Background and Border Test:background-size conflicts with background-attachment</title>
<link href="stenders@163.com" rel="author" title="xiaochun">
<link href="jinlongz@oupeng.com" rel="reviewer" title="Jinlong Zhang"><!--2012/10/21-->
<link href="http://www.w3.org/TR/css3-background/#the-background-size" rel="help">
<link href="reference/background-size-ref.htm" rel="match">
<meta content="The test passes if we can see the background-image is exactly same as above." name="assert">
<style type="text/css">
.backgroundSize{
width:295px;
height:289px;
background-image:url(support/bg.jpg);
background-repeat:no-repeat;
background-size:cover;
background-attachment:fixed;
}
</style>
</head>
<body>
The image used as background-image is :<br>
<img src="support/bg.jpg">
<p>The test passes if we can see the background-image is exactly same as above.</p>
<div class="container">
<!-- This is the box that should only contains an image if the test passes -->
<div class="backgroundSize">
</div>
</div>
</body></html>