Bug 136861

Summary: overflow:scroll should not leave space for a scroll corner with overlay scrollbars
Product: WebKit Reporter: Beth Dakin <bdakin>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, sam, simon.fraser, thorton
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Test case
none
Patch sam: review+

Description Beth Dakin 2014-09-16 11:46:37 PDT
overflow:scroll should not leave space for a scroll corner on the Mac with overlay scrollbars because it looks wrong. Historically, overflow:scroll elements were meant to have scrollbar tracks and scroll corners whether or not there was content to scroll to. Since overlay scrollbars only appear when the user is scrolling, we don't do anything to differentiate overflow:scroll from overflow:auto if there is nothing to scroll too -- EXCEPT that we leave space for a scroll corner, which just looks wrong. We should stop doing that and embrace the fact that overflow:scroll just means something slightly different in the world of overlay scrollbars.
Comment 1 Beth Dakin 2014-09-16 11:47:54 PDT
Created attachment 238191 [details]
Test case

Here's a test case that shows the problem. It's silly that we leave space for the scroll corner in the top two <div>s. It only makes sense in the bottom <div>.
Comment 2 Beth Dakin 2014-09-16 11:52:56 PDT
Created attachment 238192 [details]
Patch
Comment 3 Beth Dakin 2014-09-16 13:32:52 PDT
Thanks Sam! http://trac.webkit.org/changeset/173668