mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
33 lines
No EOL
852 B
HTML
33 lines
No EOL
852 B
HTML
<!DOCTYPE html>
|
|
<html><head><title>CSS Test: background-{attachment: local; clip: border-box; image}</title>
|
|
<link href="reference/attachment-local-clipping-image-1-ref.htm" 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>
|
|
#outer {
|
|
width: 200px;
|
|
height: 200px;
|
|
padding: 40px;
|
|
border: 10px dashed;
|
|
overflow: hidden;
|
|
background: url(aqua-yellow-32x32.png) local;
|
|
background-clip: border-box;
|
|
background-origin: padding-box; /* Match the reference. */
|
|
}
|
|
#outer div {
|
|
height: 500px;
|
|
}
|
|
p {
|
|
margin-top: 20px;
|
|
}
|
|
</style>
|
|
</head><body><div id="outer">
|
|
<div>
|
|
<p>Test</p>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
document.getElementById('outer').scrollTop = 15;
|
|
</script>
|
|
</body></html> |