servo/tests/wpt/css-tests/css-backgrounds-3_dev/html4/attachment-local-clipping-image-6.htm
Martin Robinson 39a98d4ff1 Fix the size and position of overflow:scroll clip
The clip for overflow:scroll clip was not including the space for
padding, which could lead to some content being clipped when it
shouldn't. This changes fixes that issue.

A test is skipped because this fix also stops hiding a failure due to
mispositioned text.

Fixes #16576.
2017-07-13 13:50:03 +02:00

32 lines
810 B
HTML

<!DOCTYPE html>
<html><head><title>CSS Test: background-{attachment: local; clip: content-box; image}; border-radius</title>
<link href="reference/attachment-local-clipping-image-6-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 double;
overflow: hidden;
border-radius: 50%;
background: url(aqua-yellow-32x32.png) local content-box;
}
#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>