News for hackers. Stuff that matters.
Re:Avoid 100vh on Mobile Web by uallo on Monday September 30, 2019 @03:29AM (#21112586)
Firefox handles it differently than Chrome. In Firefox, the amount reflecting 100vh is changed while the address bar is hidden. So you always see the full 100vh, but the layout might change if for example the spacing is calculated based on the vh unit (or vmax in portrait mode, or vmin in landscape mode).
Re:Avoid 100vh on Mobile Web by masklinn on Monday September 30, 2019 @04:54AM (#21113018)
> the layout might change if for example the spacing is calculated based on the vh unit (or vmax in portrait mode, or vmin in landscape mode).

That sounds like a good thing, and pretty much the entire point of using viewport-relative units?

I'd certainly expect vh/vw-based layouts to change when I change the size of my viewport, whether by hiding and showing ancillary UI elements (e.g. sidebars or control bars of my browsers) or by manipulating the browser window directly.

Re:Avoid 100vh on Mobile Web by uallo on Monday September 30, 2019 @05:00AM (#21113053)
Most of the time, yes. But the layout might jump just because you scroll up/down a little. For example, the spacings might get slightly larger when you scroll down and slightly smaller when you scroll up.
Re:Avoid 100vh on Mobile Web by brlewis on Monday September 30, 2019 @08:08AM (#21114367)
Subtle changes during scrolling seem way preferable to me than hiding content that, according to standards, should be shown.