mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
33 lines
1.2 KiB
HTML
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> |