[Webkit-unassigned] [Bug 182709] New: Elements placed using position: fixed are misplaced when contentInsets are manually set

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 12 15:03:52 PST 2018


https://bugs.webkit.org/show_bug.cgi?id=182709

            Bug ID: 182709
           Summary: Elements placed using position: fixed are misplaced
                    when contentInsets are manually set
           Product: WebKit
           Version: Safari 11
          Hardware: iPhone / iPad
                OS: iOS 11
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit API
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zwaugh at gmail.com

Created attachment 333634

  --> https://bugs.webkit.org/attachment.cgi?id=333634&action=review

Sample Project

When a WKWebView is configured with `webView.scrollView.contentInsetAdjustmentBehavior = .never`, DOM elements using `position: fixed` are misplaced. This occurs even though the correct contentInset has been manually applied. When `webView.scrollView.contentInsetAdjustmentBehavior = .automatic` (or not changed), it works correctly. This applies when the web view sits beneath the nav/tab bars. It works correctly if the web view does not underlay nav/tab bars in either configuration.

I've attached a sample project that demonstrates the bug. It is also available on GitHub - https://github.com/zachwaugh/wkwebview-bugs/tree/master/PositionFixedContentInset

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180212/c2594097/attachment.html>


More information about the webkit-unassigned mailing list