Bug 153056 - position:fixed is incorrectly positioned when tab bar is visible on iPhone 6S+ Safari
Summary: position:fixed is incorrectly positioned when tab bar is visible on iPhone 6S...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 9
Hardware: iPhone / iPad iOS 10
: P2 Normal
Assignee: Nobody
URL: http://getbootstrap.com/javascript/#m...
Keywords: InRadar
Depends on:
Blocks: 159753
  Show dependency treegraph
 
Reported: 2016-01-12 21:53 PST by Chris Rebert
Modified: 2019-03-22 20:07 PDT (History)
4 users (show)

See Also:


Attachments
GIF video demonstrating the bug (2.87 MB, image/gif)
2016-01-12 21:53 PST, Chris Rebert
no flags Details
GIF video demonstrating correct behavior when tabs bar is absent (2.35 MB, image/gif)
2016-01-12 21:55 PST, Chris Rebert
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Rebert 2016-01-12 21:53:40 PST
Created attachment 268854 [details]
GIF video demonstrating the bug

Original Bootstrap bug report: https://github.com/twbs/bootstrap/issues/18859
iOS version: 9.2
Hardware: iPhone 6S Plus
Device orientation: Landscape

Steps to reproduce:
1. Open Safari
2. Rotate the screen so it's in Landscape orientation
3. Navigate to a webpage
4. Open a new tab
5. Navigate to http://getbootstrap.com/javascript/#modals-sizes
6. Ensure that Safari's tabs bar is visible. (If it's not, scroll down and then up so it becomes visible.)
7. Tap either the "Large modal" or "Small modal" button

Expected result:
The position:fixed Bootstrap modal element should be visible and positioned within the bounds of the visual viewport

Actual result:
The position:fixed Bootstrap modal element isn't visible.
To bring it into view, you must scroll the page down (and thus cause the tabs bar to hide).

Additional notes:
This bug only occurs when Safari's tabs bar is visible.
(And thus it never occurs when in Portrait orientation.)
If you hide the tabs bar (by scrolling down) before tapping the button, this bug doesn't occur.
If the device is in Landscape orientation but has no other tabs open, this bug doesn't occur.
This bug doesn't occur in OS X Safari 9.0.2.
Comment 1 Chris Rebert 2016-01-12 21:55:16 PST
Created attachment 268855 [details]
GIF video demonstrating correct behavior when tabs bar is absent
Comment 2 Radar WebKit Bug Importer 2016-01-14 11:31:52 PST
<rdar://problem/24191746>
Comment 3 Simon Fraser (smfr) 2017-05-29 08:48:14 PDT
This may be fixed in iOS 10.3.
Comment 4 Simon Fraser (smfr) 2019-03-22 20:07:03 PDT
I confirm this is fixed.