[Webkit-unassigned] [Bug 242758] New: Dynamic viewport units (dvh) not matching viewport height in Safari Technology Preview 16.0 for Mac
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Jul 14 11:01:15 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=242758
Bug ID: 242758
Summary: Dynamic viewport units (dvh) not matching viewport
height in Safari Technology Preview 16.0 for Mac
Product: WebKit
Version: Safari Technology Preview
Hardware: Mac (Intel)
OS: macOS 12
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mszylkowski at google.com
On Safari 15.4 and 15.5 Desktop the dynamic viewport units were introduced and worked properly (they matched the viewport height). Currently on Safari 16.0 (Technology Preview) the dvh unit works differently than it does in 15.4/15.5, as `100dvh` is 80px larger than `100%` or `100vh` when there are multiple tabs opened, and 52px larger when there are no other tabs opened in the browser.
This seems to be an issue with the way the `dvh` unit is calculated, which now does not subtract properly the size of the nav bar (and tabs if there are multiple tabs opened).
I have a demo that shows the difference at https://browser-units.web.app, where red boxes mean the units don't match `100%` (and green means it matches). On Safari 15.5 the dvh units are green, while on Safari TP 16.0 the dvh units are red.
--
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/20220714/38be3686/attachment-0001.htm>
More information about the webkit-unassigned
mailing list