You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the problem is that negative margins are accumulated into the overflow rectangle, which is then used to determine whether a region is scrollable or not. I think Patrick mentioned something a while ago about Gecko having separate concepts for visual overflow vs. scrollable overflow - would that be relevant here? @pcwalton How should we handle this case in layout?
There are actually two bugs here. One, which @glennw's test case displays, is that overflow: scroll should not allow you to scroll past the top left corner of the scrollable element (including the body). Fixing this issue fixes that test case. However, the original bug remains for an unknown reason.
Activity
glennw commentedon Jan 18, 2016
I can reproduce this bug with the following smaller code:
I think the problem is that negative margins are accumulated into the overflow rectangle, which is then used to determine whether a region is scrollable or not. I think Patrick mentioned something a while ago about Gecko having separate concepts for visual overflow vs. scrollable overflow - would that be relevant here? @pcwalton How should we handle this case in layout?
paulrouget commentedon Jan 19, 2016
@glennw do you think this is related to #9308 and #9309?
pcwalton commentedon Jan 22, 2016
If negative margins are accumulated into the overflow rect, then that should be easily fixable.
pcwalton commentedon Jan 23, 2016
There are actually two bugs here. One, which @glennw's test case displays, is that
overflow: scrollshould not allow you to scroll past the top left corner of the scrollable element (including the body). Fixing this issue fixes that test case. However, the original bug remains for an unknown reason.pcwalton commentedon Jan 23, 2016
It looks like the second bug is an incremental reflow bug relating to inline absolute hypothetical fragments.
layout: Remove some bogus code that tried to handle
Auto merge of #9405 - pcwalton:absolute-positioning-overflow, r=glennw
layout: Remove some bogus code that tried to handle
Auto merge of #9405 - pcwalton:absolute-positioning-overflow, r=glennw