servo/tests/wpt/css-tests/css-backgrounds-3_dev/xhtml1/attachment-local-positioning-5.xht

25 lines
No EOL
858 B
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: background-{attachment: local; origin: content-box}; positioning area</title>
<link href="reference/attachment-local-positioning-5-ref.xht" rel="match" />
<meta content="dom" name="flags" />
<link href="http://exyr.org/about/" rel="author" title="Simon Sapin" />
<link href="http://www.w3.org/TR/css3-background/#the-background-attachment" rel="help" />
<style>
div {
background: url(aqua-yellow-32x32.png) local no-repeat content-box;
overflow: hidden;
height: 200px;
padding: 40px 30px;
}
p {
padding-top: 100px;
height: 500px;
}
</style>
</head><body><div>
<p>Test</p>
</div>
<script>
document.getElementsByTagName('div')[0].scrollTop = 15;
</script>
</body></html>