[Webkit-unassigned] [Bug 255708] New: Viewport units are sized wrong in SFSafariViewController

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 19 23:28:50 PDT 2023


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

            Bug ID: 255708
           Summary: Viewport units are sized wrong in
                    SFSafariViewController
           Product: WebKit
           Version: Safari 16
          Hardware: iPhone / iPad
                OS: iOS 16
            Status: NEW
          Severity: Major
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: johannes.odland at nrk.no

Created attachment 466000

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

Screenshot of David Bokans viewport unit test page

Viewport units inside SFSafariViewController are wrong. 
vh units and lvh units are sized relative to the small viewport. 
dvh units ends up being larger than lvh and vh units.

This causes problems in webpages that use viewport units to size content.

Steps to reproduce: 

Open David Bokan's viewport unit test page: https://bokand.github.io/demo/urlbarsize.html

Expected result: 
The bars with height: 99vh and 99lvh should be sized relative to the large viewport (browser interface retracted).

Actual result: 
The bars with height: 99vh and 99lvh are sized relative to the small viewport (browser interface expanded).
99dvh is larger than 99lvh.

-- 
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/20230420/d4450627/attachment.htm>


More information about the webkit-unassigned mailing list