Understand how Chrome calculates the dynamic toolbar height in viewport units
Categories
(Core :: Layout, task)
Tracking
()
People
(Reporter: hiro, Unassigned)
Details
Attachments
(3 files)
While I am working on bug 1909181, I found a weird case on Chrome. I am going to attach a couple of test cases to explain it.
Attaching file is a normal case, it's rendered as 1.0 scale, and its minimum scale is also 1.0.
The 100svh
value on Chrome on my Pixel 3 is 654.18... px.
The 100lvh
value on Chrome on the same device is 710.18... px.
The approximate diff is 56px.
Reporter | ||
Comment 1•3 months ago
|
||
This attaching file is similar to the first case in comment 0. The difference is it's rendered as 0.5 scale, thus the minimum-scale is 0.5 as well.
In this test case
The 100svh value on Chrome on my Pixel 3 is 654.18... px.
The 100lvh value on Chrome on the same device is 710.18... px.
The approximate diff is 56px. They all are same as the first test case.
That matches my mental model of viewport units.
Reporter | ||
Comment 2•3 months ago
|
||
This is the weird test case. It's rendered as 0.25 scale, the minimum scale is also 0.25 I believe.
The 100svh value on Chrome on my Pixel 3 is 654.18... px.
The 100lvh value on Chrome on the same device is 836.52... px.
The approximate diff is 182px. What's going on there?
Description
•