Bug 148033

Summary: Scrollbar doesn't show up in a container with position:fixed
Product: WebKit Reporter: Emmanuel <egarciad>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Major CC: bfulgham, egarciad, simon.fraser, tonikitoo, webkit-bug-importer
Priority: P1 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.10   
Attachments:
Description Flags
try to scroll the content inside the red box. none

Emmanuel
Reported 2015-08-14 12:29:09 PDT
Created attachment 259025 [details] try to scroll the content inside the red box. A simple example can repro this issue: <body> <div id="#red" style="position: fixed; width: 200px; height: 200px; top: 0px; left: 0; background-color:red; overflow-y: auto;"> <div style="height: 3000px; width: 10px; background: green; margin: 10px;"></div> </div> </body> the scrollbar in #red doesn't render anymore, but if I change its position to absolute, then the scrollbar is back.
Attachments
try to scroll the content inside the red box. (623 bytes, text/html)
2015-08-14 12:29 PDT, Emmanuel
no flags
Emmanuel
Comment 1 2015-08-14 14:46:14 PDT
One more bug. If the document scrollTop > 0, then you can't scroll the content inside the red container anymore. It works fine in Chrome and Firefox.
Simon Fraser (smfr)
Comment 2 2015-08-17 21:39:45 PDT
This seems to work correctly in a WebKit nightly.
Radar WebKit Bug Importer
Comment 3 2015-08-17 21:39:59 PDT
Antonio Gomes
Comment 4 2016-07-15 13:26:46 PDT
(In reply to comment #2) > This seems to work correctly in a WebKit nightly. Same here. WORKSFORME for now. Please reopen with valid steps if you are able to reproduce this with the latest code.
Note You need to log in before you can comment on or make changes to this bug.