servo: Box with overflow:hidden cut inner div with absolute position by content edge, not by padding edge
Tested on Windows 8.1 x64

<html>
<body>
<style>
#box{
background-color: #080b0c;
height: 100px;
overflow: hidden;
padding: 0 15px;
position: relative;
}
#inside {
position: absolute;
right: 0px;
width: 100px;
height: 100%;
background: red;
}
</style>
<div id="box">
<div id="inside">
</div>
</div>
</body>
</html>
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 17 (16 by maintainers)
Commits related to this issue
- 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 cha... — committed to mrobinson/servo by mrobinson 9 years ago
- 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 cha... — committed to mrobinson/servo by mrobinson 9 years ago
- 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 cha... — committed to mrobinson/servo by mrobinson 9 years ago
- 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 cha... — committed to mrobinson/servo by mrobinson 9 years ago
- 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 cha... — committed to mrobinson/servo by mrobinson 9 years ago
- Auto merge of #17712 - mrobinson:overflow-scroll-clip, r=<try> Fix the size and position of overflow:scroll clip The clip for overflow:scroll clip was not including the space for padding, which coul... — committed to servo/servo by deleted user 9 years ago
- Auto merge of #17712 - mrobinson:overflow-scroll-clip, r=emilio Fix the size and position of overflow:scroll clip The clip for overflow:scroll clip was not including the space for padding, which cou... — committed to servo/servo by deleted user 9 years ago
I retract my earlier doubt. @sciguyryan is right; this looks like it’s a regression from #16336 as well.