Files
servo/tests/wpt/css-tests/css-backgrounds-3_dev/xhtml1/background-size-035.xht

33 lines
1.3 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><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.xht" 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>