servo/tests/wpt/css-tests/css-backgrounds-3_dev/xhtml1print/scroll-positioned-multiple-background-images.xht

35 lines
No EOL
1.2 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 Test: Scroll multiple background images that are positioned</title>
<link href="http://www.google.com/" rel="author" title="Google" />
<link href="reference/60x60-green-background.xht" rel="match" />
<link href="http://www.w3.org/TR/css3-background/#layering" rel="help" />
<meta content="dom image scroll" name="flags" />
<meta content="When multiple background images are positioned at (0px, 0px) and (0, 60px) of each 60px by 60px in a scrollable element,
and the element is scrolled to (0, 60px), only the second image is shown." name="assert" />
<style type="text/css">
#container {
width: 200px;
height: 200px;
overflow: hidden;
}
#element-with-attachment-scroll {
width: 500px;
height: 500px;
background-image: url('support/60x60-red.png'), url('support/60x60-green.png');
background-position: 0 0, 0 60px;
background-repeat: no-repeat;
}
</style>
</head>
<body>
<div id="container"><div id="element-with-attachment-scroll"><br /></div></div>
<script>
document.getElementById('container').scrollTop = 60;
</script>
</body></html>