mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
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.
32 lines
810 B
HTML
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>
|