Bug 148033 - Scrollbar doesn't show up in a container with position:fixed
Summary: Scrollbar doesn't show up in a container with position:fixed
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.10
: P1 Major
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-08-14 12:29 PDT by Emmanuel
Modified: 2016-07-15 13:26 PDT (History)
5 users (show)

See Also:


Attachments
try to scroll the content inside the red box. (623 bytes, text/html)
2015-08-14 12:29 PDT, Emmanuel
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel 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.
Comment 1 Emmanuel 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.
Comment 2 Simon Fraser (smfr) 2015-08-17 21:39:45 PDT
This seems to work correctly in a WebKit nightly.
Comment 3 Radar WebKit Bug Importer 2015-08-17 21:39:59 PDT
<rdar://problem/22320185>
Comment 4 Antonio Gomes 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.