Bug 217754

Summary: Safe-area-inset-bottom still set when keyboard appears
Product: WebKit Reporter: Charlie Croom <charlie.croom>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bdakin, david, ik, kenneth, matan.hershberg, mmzeeman, simon.fraser, smoley, thorton, wart.claes, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: iPhone / iPad   
OS: All   
Attachments:
Description Flags
Testcase for safe-area-inset-bottom not updating when software keyboard is visible
none
Screenshot that demonstrates the issue none

Charlie Croom
Reported 2020-10-15 07:24:45 PDT
The safe-area-inset-* are designed to prevent content in a rectangular viewport from being made invisible on certain devices with insets. On twitter.com, we use "safe-area-inset-bottom" to ensure the items at the bottom of the screen do not overlap the home button. We would expect that extra padding to disappear when the keyboard appears, since the viewport is once again rectangular, there should be no insets, but it does not do so automatically. This gives us a white space between the keyboard and content which we can't control and causes a poor layout. Potentially related to https://bugs.webkit.org/show_bug.cgi?id=191363, not sure how keyboard / orientation changes might be handled
Attachments
Testcase for safe-area-inset-bottom not updating when software keyboard is visible (246.79 KB, application/x-zip-compressed)
2023-03-30 07:32 PDT, ik
no flags
Screenshot that demonstrates the issue (126.17 KB, image/png)
2023-03-30 07:42 PDT, ik
no flags
Radar WebKit Bug Importer
Comment 1 2020-10-22 07:25:16 PDT
Wart Claes
Comment 2 2021-09-15 01:10:45 PDT
Since the floating address bar has been removed, we now have the issue that is is still "floaty" when the on screen keyboard is open, creating the issue that the address bar is above one of our UI elements when you focus the input field and it is not possible to clear that space with safe-area-inset-*. https://codepen.io/WartClaes/pen/gORGJPJ
ik
Comment 3 2023-03-30 07:32:44 PDT
Created attachment 465677 [details] Testcase for safe-area-inset-bottom not updating when software keyboard is visible I've created a reduced testcase that demonstrates the issue (attached). Also available here: https://testcase.rejh.nl/webkit-safe-area-inset-does-not-update/ Steps to reproduce the issue are included. Would be great to see a fix as this issue is now ~2.5 yrs old?
ik
Comment 4 2023-03-30 07:42:24 PDT
Created attachment 465678 [details] Screenshot that demonstrates the issue
Note You need to log in before you can comment on or make changes to this bug.